Unified · Split
| @@ -15,7 +15,6 @@ else · 14 unmodified lines | |||
| 15 | CFLAGS+=-march=i386 -falign-functions=0 | 15 | CFLAGS+=-march=i386 -falign-functions=0 |
| 16 | endif | 16 | endif |
| 17 | 17 | ||
| 18 | |||
| 19 | DISAS=objdump -d | 18 | DISAS=objdump -d |
| 20 | INSTALL=install | 19 | INSTALL=install |
| 21 | 20 | ||
| @@ -38,19 +37,19 @@ test.ref: tcctest.ref · 16 unmodified lines | |||
| 38 | ./tcctest.ref > $@ | 37 | ./tcctest.ref > $@ |
| 39 | 38 | ||
| 40 | test.out: tcc tcctest.c | 39 | test.out: tcc tcctest.c |
| 41 | $(TCC) tcctest.c > $@ | 40 | $(TCC) -run tcctest.c > $@ |
| 42 | 41 | ||
| 43 | run: tcc tcctest.c | 42 | run: tcc tcctest.c |
| 44 | $(TCC) tcctest.c | 43 | $(TCC) -run tcctest.c |
| 45 | 44 | ||
| 46 | # iterated test2 (compile tcc then compile tcctest.c !) | 45 | # iterated test2 (compile tcc then compile tcctest.c !) |
| 47 | test2: tcc tcc.c tcctest.c test.ref | 46 | 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 |
| 49 | @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi | 48 | @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi |
| 50 | 49 | ||
| 51 | # iterated test3 (compile tcc then compile tcc then compile tcctest.c !) | 50 | # iterated test3 (compile tcc then compile tcc then compile tcctest.c !) |
| 52 | test3: tcc tcc.c tcctest.c test.ref | 51 | 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 |
| 54 | @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi | 53 | @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi |
| 55 | 54 | ||
| 56 | # binary output test | 55 | # binary output test |
| @@ -79,14 +78,14 @@ BOUNDS_FAIL= 2 5 7 9 11 12 13 · 22 unmodified lines | |||
| 79 | 78 | ||
| 80 | btest: boundtest.c tcc | 79 | btest: boundtest.c tcc |
| 81 | @for i in $(BOUNDS_OK); do \ | 80 | @for i in $(BOUNDS_OK); do \ |
| 82 | if $(TCC) -b boundtest.c $$i ; then \ | 81 | if $(TCC) -b -run boundtest.c $$i ; then \ |
| 83 | /bin/true ; \ | 82 | /bin/true ; \ |
| 84 | else\ | 83 | else\ |
| 85 | echo Failed positive test $$i ; exit 1 ; \ | 84 | echo Failed positive test $$i ; exit 1 ; \ |
| 86 | fi ;\ | 85 | fi ;\ |
| 87 | done ;\ | 86 | done ;\ |
| 88 | for i in $(BOUNDS_FAIL); do \ | 87 | for i in $(BOUNDS_FAIL); do \ |
| 89 | if $(TCC) -b boundtest.c $$i ; then \ | 88 | if $(TCC) -b -run boundtest.c $$i ; then \ |
| 90 | echo Failed negative test $$i ; exit 1 ;\ | 89 | echo Failed negative test $$i ; exit 1 ;\ |
| 91 | else\ | 90 | else\ |
| 92 | /bin/true ; \ | 91 | /bin/true ; \ |
| @@ -140,7 +139,7 @@ clean: · 47 unmodified lines | |||
| 140 | tcctest[1234] test[1234].out | 139 | tcctest[1234] test[1234].out |
| 141 | 140 | ||
| 142 | distclean: clean | 141 | distclean: clean |
| 143 | rm -f config.h config.mak | 142 | rm -f config.h config.mak config.texi |
| 144 | 143 | ||
| 145 | # win32 TCC | 144 | # win32 TCC |
| 146 | tcc_g.exe: tcc.c i386-gen.c bcheck.c Makefile | 145 | tcc_g.exe: tcc.c i386-gen.c bcheck.c Makefile |