summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-12-04 09:23:32 -0500
committerJakob Kaivo <jkk@ung.org>2019-12-04 09:23:32 -0500
commitf602ac37820294b4e38f9a06ae7253be8426e8b3 (patch)
treeb93e595ee51dba87b589c3488f44d9338369ba86 /Makefile
parent65519c2e499e152853d31ead97f2e9aacec8ce8e (diff)
simplify dependencies substantially
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 11 insertions, 32 deletions
diff --git a/Makefile b/Makefile
index dc407ce..5a381f7 100644
--- a/Makefile
+++ b/Makefile
@@ -43,38 +43,17 @@ TESTOBJS=main.o \
testlibc: $(TESTOBJS) $(LIBDIR)/libc.a
$(CC) -o $@ $(TESTOBJS) $(LDFLAGS)
-assert.o: assert.c test.h
-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.h
-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.h
-setjmp.o: setjmp.c test.h
-signal.o: signal.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
-stddef.o: stddef.c test.h
-stdint.o: stdint.c test.h
-stdio.o: stdio.c test.h _stdio.h
-stdlib.o: stdlib.c test.h
-stdnoreturn.o: stdnoreturn.c test.h _stdnoreturn.h
-string.o: string.c test.h
-tgmath.o: tgmath.c test.h
-threads.o: threads.c test.h
-time.o: time.c test.h
-uchar.o: uchar.c test.h
-wchar.o: wchar.c test.h _wchar.h
-wctype.o: wctype.c test.h _wctype.h
-
-test.o: test.c test.h
-main.o: main.c test.h
+$(TESTOBJS): test.h
+float.o: _float.h
+math.o: _math.h
+stdalign.o: _stdalign.h
+stdio.o: _stdio.h
+stdnoreturn.o: _stdnoreturn.h
+wchar.o: _wchar.h
+wctype.o: _wctype.h
+
+test.o: test.h
+main.o: test.h
.d.h:
awk '{printf("#ifndef %s\n#error %s not defined\n#endif\n", $$0, $$0);}' $< > $@