History

added -run option

bellard committed 23 years ago

Commit 61046291 parent 40987541 file · +7 −8Browse files

Unified · Split

Makefile+7−8
@@ -15,7 +15,6 @@ else · 14 unmodified lines
1515 CFLAGS+=-march=i386 -falign-functions=0
1616 endif
1717
18−
1918 DISAS=objdump -d
2019 INSTALL=install
2120
@@ -38,19 +37,19 @@ test.ref: tcctest.ref · 16 unmodified lines
3837 ./tcctest.ref > $@
3938
4039 test.out: tcc tcctest.c
41− $(TCC) tcctest.c > $@
40+ $(TCC) -run tcctest.c > $@
4241
4342 run: tcc tcctest.c
44− $(TCC) tcctest.c
43+ $(TCC) -run tcctest.c
4544
4645 # iterated test2 (compile tcc then compile tcctest.c !)
4746 test2: tcc tcc.c tcctest.c test.ref
48− $(TCC) tcc.c -B. -I. tcctest.c > test.out2
47+ $(TCC) -run tcc.c -B. -I. -run tcctest.c > test.out2
4948 @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi
5049
5150 # iterated test3 (compile tcc then compile tcc then compile tcctest.c !)
5251 test3: tcc tcc.c tcctest.c test.ref
53− $(TCC) tcc.c -B. -I. tcc.c -B. -I. tcctest.c > test.out3
52+ $(TCC) -run tcc.c -B. -I. -run tcc.c -B. -I. -run tcctest.c > test.out3
5453 @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi
5554
5655 # binary output test
@@ -79,14 +78,14 @@ BOUNDS_FAIL= 2 5 7 9 11 12 13 · 22 unmodified lines
7978
8079 btest: boundtest.c tcc
8180 @for i in $(BOUNDS_OK); do \
82− if $(TCC) -b boundtest.c $$i ; then \
81+ if $(TCC) -b -run boundtest.c $$i ; then \
8382 /bin/true ; \
8483 else\
8584 echo Failed positive test $$i ; exit 1 ; \
8685 fi ;\
8786 done ;\
8887 for i in $(BOUNDS_FAIL); do \
89− if $(TCC) -b boundtest.c $$i ; then \
88+ if $(TCC) -b -run boundtest.c $$i ; then \
9089 echo Failed negative test $$i ; exit 1 ;\
9190 else\
9291 /bin/true ; \
@@ -140,7 +139,7 @@ clean: · 47 unmodified lines
140139 tcctest[1234] test[1234].out
141140
142141 distclean: clean
143− rm -f config.h config.mak
142+ rm -f config.h config.mak config.texi
144143
145144 # win32 TCC
146145 tcc_g.exe: tcc.c i386-gen.c bcheck.c Makefile

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t