0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 09:58:43 +00:00

Birdtest: Add echoing of compilation command

This commit is contained in:
Pavel Tvrdík 2015-03-17 12:43:01 +01:00
parent a2cdd9532d
commit 7d0c9831f8

View File

@ -44,12 +44,15 @@ docdir=@prefix@/doc
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