aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgrischka <grischka>2017-07-14 19:26:01 +0200
committergrischka <grischka>2017-07-14 19:26:01 +0200
commit69a137ff889f552b3ce58b861f3f0601c1818d6b (patch)
tree8e2f2e4a2274e48a9e7bbafd37c4f06d8389b723 /Makefile
parent04418c7addb757e80b09c94eb3553b131bcf4de8 (diff)
downloadtinycc-69a137ff889f552b3ce58b861f3f0601c1818d6b.tar.gz
tinycc-69a137ff889f552b3ce58b861f3f0601c1818d6b.tar.bz2
#pragma comment(option,"-..."), bitfields test, etc...
tccpp.c: * #pragma comment(option,"-some-option") to set commandline option from C code. May work only for some options. libtcc.c: * option "-d1..9": sets a 'g_debug' global variable. (for development) tests2/Makefile: * new make targets: tests2.37 / tests2.37+ run single test from tests2, optionally update .expect * new variable GEN-ALWAYS to always generate certain .expects * bitfields test tccgen.c: * bitfields: fix a bug and improve slightly more * _Generic: ignore "type match twice"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee8dcd9..62b7372 100644
--- a/Makefile
+++ b/Makefile
@@ -345,9 +345,12 @@ tar: tcc-doc.html
config.mak:
$(if $(wildcard $@),,@echo "Please run ./configure." && exit 1)
-# in tests subdir
+# run all tests
test:
$(MAKE) -C tests
+# run test(s) from tests2 subdir (see make help)
+tests2.%:
+ $(MAKE) -C tests/tests2 $@
clean:
rm -f $(PROGS) $(PROGS_CROSS) tcc_p$(EXESUF) tcc.pod
@@ -389,8 +392,14 @@ help:
@echo " INC-i386 = {B}/lib/include:{B}/i386-linux/usr/include"
@echo " DEF-i386 += -D__linux__"
@echo ""
+ @echo "make test"
+ @echo " run all tests"
+ @echo ""
+ @echo "make tests2.all / make tests2.37 / make tests2.37+"
+ @echo " run all/single test(s) from tests2, optionally update .expect"
+ @echo ""
@echo "Other supported make targets:"
- @echo " install install-strip test tags ETAGS tar clean distclean help"
+ @echo " install install-strip tags ETAGS tar clean distclean help"
@echo ""
# --------------------------------------------------------------------------