aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbellard <bellard>2001-11-18 16:33:35 +0000
committerbellard <bellard>2001-11-18 16:33:35 +0000
commit34a14a08a392bab489d75eb9e58c6474bc333c44 (patch)
treedecb28316b75b2c5bf6d8a423d48d6482b0b8902 /Makefile
parentb9455a74847ba6b517d6b4e71f81cca44b7bcb2c (diff)
downloadtinycc-34a14a08a392bab489d75eb9e58c6474bc333c44.tar.gz
tinycc-34a14a08a392bab489d75eb9e58c6474bc333c44.tar.bz2
update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index efa6c00..af720e3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
#
prefix=/usr/local
-CFLAGS=-O2 -g -Wall -Wno-parentheses -I.
+CFLAGS=-O2 -g -Wall -Wno-parentheses -Wno-missing-braces -I.
LIBS=-ldl
#CFLAGS=-O2 -g -Wall -Wno-parentheses -I. -pg -static -DPROFILE
#LIBS=
@@ -32,11 +32,15 @@ test.out: tcc prog.c
run: tcc prog.c
./tcc -I. prog.c
-run2: tcc tcc.c prog.c
- ./tcc -I. tcc.c -I. prog.c
+# iterated test2 (compile tcc then compile prog.c !)
+test2: tcc tcc.c prog.c
+ ./tcc -I. tcc.c -I. prog.c > test.out2
+ @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi
-run3: tcc tcc.c prog.c
- ./tcc -I. tcc.c -I. tcc.c -I. prog.c
+# iterated test3 (compile tcc then compile tcc then compile prog.c !)
+test3: tcc tcc.c prog.c
+ ./tcc -I. tcc.c -I. tcc.c -I. prog.c > test.out3
+ @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi
# speed test
speed: tcc ex2 ex3
@@ -70,13 +74,10 @@ clean:
# target for development
-%.bin: %.c tcct
- ./tcct -I. $< $@
+%.bin: %.c tcc
+ ./tcc -o $@ -I. $<
$(DISAS) $@
-tcct: tcc.c
- gcc -DTEST $(CFLAGS) -o $@ $< -ldl
-
instr.o: instr.S
gcc -O2 -Wall -g -c -o $@ $<