aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjiang <30155751@qq.com>2014-05-01 15:15:01 +0800
committerjiang <30155751@qq.com>2014-05-01 15:15:01 +0800
commit87a850f5537cccabc56d2f9b76faefe1454e4b19 (patch)
tree2f4078dc037e873d630b8e4d68518fe2697179a7 /tests
parent9e3713facd9d857201326ac2038ab6a8fb64a5fc (diff)
downloadtinycc-87a850f5537cccabc56d2f9b76faefe1454e4b19.tar.gz
tinycc-87a850f5537cccabc56d2f9b76faefe1454e4b19.tar.bz2
fix its own making bug. Improved init_putz (). Modify the tests / Makefile to make the test more secure
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index a8b41f9..4c728eb 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -70,7 +70,7 @@ ifdef LIBCRT
LIBCRT:=$(TOP)/$(LIBCRT)
endif
-all test : $(TESTS)
+all test : clean $(TESTS)
hello-exe: ../examples/ex1.c
@echo ------------ $@ ------------
@@ -210,10 +210,14 @@ abitest-cc$(EXESUF): abitest.c $(top_builddir)/$(LIBTCC)
abitest-tcc$(EXESUF): abitest.c libtcc.c
$(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) -DONE_SOURCE $(LIBS) $(LDFLAGS) -I$(top_srcdir)
-abitest: abitest-cc$(EXESUF) abitest-tcc$(EXESUF)
+abitest-tcc1$(EXESUF): abitest.c $(top_builddir)/$(LIBTCC)
+ $(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(NATIVE_DEFINES) $(LIBS) $(LINK_LIBTCC) $(LDFLAGS) -I$(top_srcdir)
+
+abitest: abitest-cc$(EXESUF) abitest-tcc$(EXESUF) abitest-tcc1$(EXESUF)
@echo ------------ $@ ------------
./abitest-cc$(EXESUF) lib_path=.. include="$(top_srcdir)/include"
./abitest-tcc$(EXESUF) lib_path=.. include="$(top_srcdir)/include"
+ ./abitest-tcc1$(EXESUF) lib_path=.. include="$(top_srcdir)/include"
vla_test$(EXESUF): vla_test.c
$(TCC) -o $@ $^ $(CPPFLAGS) $(CFLAGS)
@@ -240,6 +244,6 @@ cache: tcc_g
clean:
$(MAKE) -C tests2 $@
rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.cc \
- *-cc *-tcc *.exe \
+ *-cc *-tcc *.exe *-tcc1\
hello libtcc_test vla_test tcctest[1234] ex? tcc_g tcclib.h \
../lib/libcrt.a