aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard>2002-02-10 16:15:22 +0000
committerbellard <bellard>2002-02-10 16:15:22 +0000
commit77db7175cad1dc04d6a4308ee2427c755437acfc (patch)
tree9765dd4d69927a7f57a4f94d2b17ea8eb7eeb85e
parente5de65fcec86d8f854c463355a8d7436928e4b7e (diff)
downloadtinycc-77db7175cad1dc04d6a4308ee2427c755437acfc.tar.gz
tinycc-77db7175cad1dc04d6a4308ee2427c755437acfc.tar.bz2
added il target
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 95ff340..36ac3b0 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ test3: tcc tcc.c tcctest.c test.ref
# memory and bound check auto test
BOUNDS_OK = 1 4 8 10
-BOUNDS_FAIL= 2 5 7 9 11 12
+BOUNDS_FAIL= 2 5 7 9 11 12 13
btest: boundtest.c tcc
@for i in $(BOUNDS_OK); do \
@@ -76,7 +76,7 @@ ex2: ex2.c
ex3: ex3.c
gcc $(CFLAGS) -o $@ $<
-# Tiny C Compiler
+# Native Tiny C Compiler
tcc_g: tcc.c i386-gen.c bcheck.c Makefile
gcc $(CFLAGS) -o $@ $< $(LIBS)
@@ -94,7 +94,15 @@ clean:
rm -f *~ *.o tcc tcc1 tcct tcc_g tcctest.ref *.bin *.i ex2 \
core gmon.out test.out test.ref a.out tcc_p
-# win32 version
+# IL TCC
+
+iltcc_g: tcc.c il-gen.c bcheck.c Makefile
+ gcc $(CFLAGS) -DTCC_TARGET_IL -o $@ $< $(LIBS)
+
+iltcc: iltcc_g
+ strip -s -R .comment -R .note -o $@ $<
+
+# win32 TCC
tcc_g.exe: tcc.c i386-gen.c bcheck.c Makefile
i386-mingw32msvc-gcc $(CFLAGS) -DCONFIG_TCC_STATIC -o $@ $<