From 73d1d7fbbdde1a7108082aa9780a27a1b8fcb671 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 8 Aug 2019 14:16:36 -0400 Subject: generalize #ifdef tests --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c50eef3..9f48418 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .POSIX: +.SUFFIXES: .h .d + include config.mk CC=c99 @@ -51,10 +53,10 @@ inttypes.o: inttypes.c test.h iso646.o: iso646.c test.h limits.o: limits.c test.h locale.o: locale.c test.h -math.o: math.c test.h +math.o: math.c test.h _math.h setjmp.o: setjmp.c test.h signal.o: signal.c test.h -stdalign.o: stdalign.c test.h +stdalign.o: stdalign.c test.h _stdalign.h stdard.o: stdarg.c test.h stdatomic.o: stdatomic.c test.h stdbool.o: stdbool.c test.h @@ -74,8 +76,8 @@ wctype.o: wctype.c test.h test.o: test.c test.h main.o: main.c test.h -_float.h: float.d - awk '{printf("#ifndef %s\n#error %s not defined\n#endif\n", $$0, $$0);}' float.d > $@ +.d.h: + awk '{printf("#ifndef %s\n#error %s not defined\n#endif\n", $$0, $$0);}' $< > $@ clean: rm -f *.o testlibc -- cgit v1.2.1