diff options
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 5 |
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 |