summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-08 14:08:30 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-08 14:08:30 -0400
commitcd9cd3483d3244aede3438960599d89ffc82039e (patch)
tree5a88ffe485503911da90a5e2af6f7e7fd7538d78 /Makefile
parent9d20f3f30dec9cc33057ee4a9e7ce75961664dd5 (diff)
simpler and more correct tests for sybmolic macro existance
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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