X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile.inc;h=10f3e8a03a169e6cdcc97e391eb9a1b0efbace99;hb=9d224cba6a348ca86bea2c6cb32a32d01c8bffbe;hp=62356af690a5ef7a1f42e41b609a2d9d703fe698;hpb=2a3abc0fb5e36dc4ff3fae2db416e5d0643143e1;p=libc-test diff --git a/Makefile.inc b/Makefile.inc index 62356af..10f3e8a 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -35,12 +35,12 @@ endif all: t b clean: - rm -f $(OBJS) t main.o main.h b bench.o tests.a + rm -f $(OBJS) t t.o main.h b b.o tests.a .c.o: $(CC) $(CFLAGS) $(INC) -c -o $@ $< -$(OBJS): $(ROOTDIR)/common/test.h +$(OBJS): $(ROOTDIR)/common/test.h $(ROOTDIR)/Makefile.conf main.h: $(OBJS) nm -f posix $+ |awk ' \ @@ -52,16 +52,16 @@ tests.a: $(OBJS) $(AR) rc $@ $+ $(RANLIB) $@ -main.o: $(ROOTDIR)/common/main.c $(ROOTDIR)/common/test.h main.h +t.o: $(ROOTDIR)/common/t.c $(ROOTDIR)/common/test.h main.h $(CC) $(CFLAGS) $(INC) -I. -c -o $@ $< -t: main.o tests.a +t: t.o tests.a $(CC) $+ $(LDFLAGS) -o $@ -bench.o: $(ROOTDIR)/common/bench.c $(ROOTDIR)/common/test.h main.h +b.o: $(ROOTDIR)/common/b.c $(ROOTDIR)/common/test.h main.h $(CC) $(CFLAGS) $(INC) -I. -c -o $@ $< -b: bench.o tests.a +b: b.o tests.a $(CC) $+ $(LDFLAGS) -lrt -o $@ .PHONY: all clean