mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-08 18:11:54 +00:00
Birdtest: Add echoing of compilation command
This commit is contained in:
parent
a2cdd9532d
commit
7d0c9831f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user