From cd9cd3483d3244aede3438960599d89ffc82039e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 8 Aug 2019 14:08:30 -0400 Subject: simpler and more correct tests for sybmolic macro existance --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8b06b28..c50eef3 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ complex.o: complex.c test.h ctype.o: ctype.c test.h errno.o: errno.c test.h fenv.o: fenv.c test.h -float.o: float.c test.h +float.o: float.c test.h _float.h inttypes.o: inttypes.c test.h iso646.o: iso646.c test.h limits.o: limits.c test.h @@ -74,5 +74,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 > $@ + clean: rm -f *.o testlibc -- cgit v1.2.1