test-src-path := $(srcdir)/$(dir-name)/
build-tests:
- @for i in `find $(test-src-path) -name '*_test.c'` ; do \
- testname=`basename $$i .c` ; \
- testobj=$${testname}.o ; \
- $(CC) $(CFLAGS) -I $(srcdir)/birdtest/ -o $$testobj -c $$i && \
- $(CC) $(LDFLAGS) $$testobj -o $$testname $(root-rel)birdtest/birdtest.a || \
- rm -rf $$testname ; \
+ @for i in `find $(test-src-path) -name '*_test.c'` ; do \
+ testname=`basename $$i .c` ; \
+ testobj=$${testname}.o ; \
+ printf "$(CC) $(CFLAGS) -I $(srcdir)/birdtest/ -o $$testobj -c $$i && " ; \
+ printf "$(CC) $(LDFLAGS) $$testobj -o $$testname $(root-rel)birdtest/birdtest.a || " ; \
+ printf "rm -rf $$testname \n" ; \
+ $(CC) $(CFLAGS) -I $(srcdir)/birdtest/ -o $$testobj -c $$i && \
+ $(CC) $(LDFLAGS) $$testobj -o $$testname $(root-rel)birdtest/birdtest.a || \
+ rm -rf $$testname ; \
done
ifdef source