- On x86-64, we need $(TARGET) in RUN_TCC. - s/RuN_TCC/RUN_TCC/
Unified · Split
| @@ -17,7 +17,7 @@ include $(TOP)/Makefile · 16 unmodified lines | |||
| 17 | 17 | ||
| 18 | # run local version of tcc with local libraries and includes | 18 | # run local version of tcc with local libraries and includes |
| 19 | TCC = ../tcc -B.. | 19 | TCC = ../tcc -B.. |
| 20 | RUN_TCC = -run ../tcc.c -B.. | 20 | RUN_TCC = $(TARGET) -run ../tcc.c -B.. |
| 21 | DISAS=objdump -d | 21 | DISAS=objdump -d |
| 22 | 22 | ||
| 23 | all test : $(TESTS) | 23 | all test : $(TESTS) |
| @@ -49,13 +49,13 @@ test1: test.ref · 25 unmodified lines | |||
| 49 | # iterated test2 (compile tcc then compile tcctest.c !) | 49 | # iterated test2 (compile tcc then compile tcctest.c !) |
| 50 | test2: test.ref | 50 | test2: test.ref |
| 51 | @echo ------------ $@ ------------ | 51 | @echo ------------ $@ ------------ |
| 52 | $(TCC) $(RUN_TCC) $(RuN_TCC) -run tcctest.c > test.out2 | 52 | $(TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out2 |
| 53 | @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi | 53 | @if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi |
| 54 | 54 | ||
| 55 | # iterated test3 (compile tcc then compile tcc then compile tcctest.c !) | 55 | # iterated test3 (compile tcc then compile tcc then compile tcctest.c !) |
| 56 | test3: test.ref | 56 | test3: test.ref |
| 57 | @echo ------------ $@ ------------ | 57 | @echo ------------ $@ ------------ |
| 58 | $(TCC) $(RUN_TCC) $(RuN_TCC) $(RUN_TCC) -run tcctest.c > test.out3 | 58 | $(TCC) $(RUN_TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out3 |
| 59 | @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi | 59 | @if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi |
| 60 | 60 | ||
| 61 | # binary output test | 61 | # binary output test |