diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-08-08 14:16:36 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-08-08 14:16:36 -0400 |
commit | 73d1d7fbbdde1a7108082aa9780a27a1b8fcb671 (patch) | |
tree | bdafcf23b4320707a7b08ba896a729500582b0b3 | |
parent | cd9cd3483d3244aede3438960599d89ffc82039e (diff) |
generalize #ifdef tests
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |