diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2012-10-22 11:11:42 +0200 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2012-11-06 15:20:53 +0100 |
| commit | a7f010ee8a9ab03859759ebb0b502860778630f7 (patch) | |
| tree | b1cdceb6e3524e289e0edda343d06018bf0c8ae0 /tests/Makefile | |
| parent | 5eb64357b1681652571831a11ad626c314408402 (diff) | |
| download | tinycc-a7f010ee8a9ab03859759ebb0b502860778630f7.tar.gz tinycc-a7f010ee8a9ab03859759ebb0b502860778630f7.tar.bz2 | |
Honour *FLAGS everywhere
Add CPPFLAGS, CFLAGS and LDFLAGS everywhere it's missing.
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile index e5c3294..4f057f4 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -68,13 +68,13 @@ libtest: libtcc_test$(EXESUF) $(LIBTCC1) ./libtcc_test$(EXESUF) lib_path=.. libtcc_test$(EXESUF): libtcc_test.c ../$(LIBTCC) - $(CC) -o $@ $^ -I.. $(CFLAGS) $(NATIVE_DEFINES) $(LIBS) $(LINK_LIBTCC) + $(CC) -o $@ $^ -I.. $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) $(LIBS) $(LINK_LIBTCC) $(LDFLAGS) # test.ref - generate using gcc # copy only tcclib.h so GCC's stddef and stdarg will be used test.ref: tcctest.c cp ../include/tcclib.h . - $(CC) -o tcctest.gcc $< -I. -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 + $(CC) -o tcctest.gcc $< -I. $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 $(LDFLAGS) ./tcctest.gcc > $@ # auto test @@ -149,14 +149,14 @@ speedtest: ex2 ex3 time $(TCC) -run ../examples/ex3.c 35 weaktest: test.ref - $(TCC) -c tcctest.c -o weaktest.tcc.o - $(CC) -c tcctest.c -o weaktest.gcc.o -I. -w $(CFLAGS) + $(TCC) -c tcctest.c -o weaktest.tcc.o $(CPPFLAGS) $(CFLAGS) + $(CC) -c tcctest.c -o weaktest.gcc.o -I. $(CPPFLAGS) -w $(CFLAGS) objdump -t weaktest.tcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.tcc.o.txt objdump -t weaktest.gcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.gcc.o.txt diff weaktest.gcc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK" ex%: ../examples/ex%.c - $(CC) -o $@ $< $(CFLAGS) + $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) # tiny assembler testing asmtest.ref: asmtest.S |
