+2002-08-20 Danny Smith <dannysmith@users.sourceforge.net
+
+ * test_headers.c : New file.
+ * Makefile.in (test_headers): New target, using it,
+ (SRCDIST_FILES): Distribute it.
+
2002-08-14 Earnie Boyd <earnie@users.sf.net>
* include/unistd.h: Add include of process.h.
gccmain.c init.c install-sh jamfile main.c mkinstalldirs moldname-crtdll.def \
moldname-msvcrt.def moldname.def moldname.def.in msvcrt.def msvcrt20.def \
msvcrt40.def mthr.c mthr_init.c mthr_stub.c readme.txt string_old.c \
-CRT_fp8.c CRT_fp10.c
+CRT_fp8.c CRT_fp10.c test_headers.c
all_dlls_host = @all_dlls_host@
install_dlls_host = @install_dlls_host@
crt2.o dllcrt2.o:
$(CC) -c -D__MSVCRT__ -U__CRTDLL__ $(ALL_CFLAGS) $< -o $@
+TEST_H_OPTIONS = $(ALL_CFLAGS) -Wall -Wsystem-headers -c \
+ $(srcdir)/test_headers.c -o test_headers.o
+
+.PHONY: test_headers
+test_headers:
+ @echo "Testing runtime headers..."
+ @for lang in c c++ objective-c ; do \
+ echo "$$lang ..."; \
+ $(CC) -x$$lang -std=c89 $(TEST_H_OPTIONS) ; \
+ echo "$$lang c89 ..."; \
+ $(CC) -x$$lang -std=c89 $(TEST_H_OPTIONS) ; \
+ echo "$$lang c99..."; \
+ $(CC) -x$$lang -std=c99 $(TEST_H_OPTIONS) ; \
+ done
+ @rm -f test_headers.o
+
clean:
-rm -f *.o *.a *~ core a.out mingwthrd.def mingwthrd.base mingwthrd.exp
-rm -f $(THREAD_DLL_NAME) mingwthrd_dummy.exe