From f602ac37820294b4e38f9a06ae7253be8426e8b3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 4 Dec 2019 09:23:32 -0500 Subject: simplify dependencies substantially --- Makefile | 43 +++++++++++-------------------------------- 1 file 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);}' $< > $@ -- cgit v1.2.1