aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-16 22:30:13 +0200
committergrischka <grischka>2009-05-16 22:30:13 +0200
commit110a4edc154f6fb73ef3d312630455f68641123f (patch)
tree341bfb7efbeacd9cf78ae351d2ed931df7f03d08 /tests/Makefile
parent68310299b67bef763ba1622dac2aec534e096bf1 (diff)
downloadtinycc-110a4edc154f6fb73ef3d312630455f68641123f.tar.gz
tinycc-110a4edc154f6fb73ef3d312630455f68641123f.tar.bz2
drop alloca #define
(Because GNU's alloca.h unconditionally #undef's alloca) Also, remove gcc specific sections in headers. and instead change tests such that gcc does not use them.
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 61df559..ddd4932 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -37,7 +37,8 @@ libtcc_test$(EXESUF): libtcc_test.c ../libtcc.a
# test.ref - generate using gcc
test.ref: tcctest.c
- $(CC) -o tcctest.gcc $< -w -I.. -I../include $(CFLAGS)
+ cp -u ../include/tcclib.h .
+ $(CC) -o tcctest.gcc $< -I. -w $(CFLAGS)
./tcctest.gcc > $@
# auto test
@@ -141,4 +142,4 @@ cache: tcc_g
# clean
clean:
rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.gcc \
- tcctest[1234] ex? libtcc_test$(EXESUF) tcc_g
+ tcctest[1234] ex? libtcc_test$(EXESUF) tcc_g tcclib.h