X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=Makefile.inc;h=5f1d61423276d54bcce4c14118c846a0f071cff3;hp=10f3e8a03a169e6cdcc97e391eb9a1b0efbace99;hb=7d87d3f6a765bea943beb384f9bbf359e3768c0a;hpb=d14d36762cc2131357345f960f7bdf86af140af8 diff --git a/Makefile.inc b/Makefile.inc index 10f3e8a..5f1d614 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -35,30 +35,30 @@ endif all: t b clean: - rm -f $(OBJS) t t.o main.h b b.o tests.a + rm -f $(OBJS) t t.o b b.o tests.a tests.h .c.o: $(CC) $(CFLAGS) $(INC) -c -o $@ $< $(OBJS): $(ROOTDIR)/common/test.h $(ROOTDIR)/Makefile.conf -main.h: $(OBJS) +tests.h: $(OBJS) nm -f posix $+ |awk ' \ /^test/ && $$2=="T"{print "T(" $$1 ")"} \ /^bench/ && $$2=="T"{print "B(" $$1 ")"} \ - ' >main.h + ' >tests.h tests.a: $(OBJS) $(AR) rc $@ $+ $(RANLIB) $@ -t.o: $(ROOTDIR)/common/t.c $(ROOTDIR)/common/test.h main.h +t.o: $(ROOTDIR)/common/t.c $(ROOTDIR)/common/test.h tests.h $(CC) $(CFLAGS) $(INC) -I. -c -o $@ $< t: t.o tests.a $(CC) $+ $(LDFLAGS) -o $@ -b.o: $(ROOTDIR)/common/b.c $(ROOTDIR)/common/test.h main.h +b.o: $(ROOTDIR)/common/b.c $(ROOTDIR)/common/test.h tests.h $(CC) $(CFLAGS) $(INC) -I. -c -o $@ $< b: b.o tests.a