aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>2009-04-18 23:53:25 +0900
committerShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>2009-04-18 23:53:25 +0900
commit48ae0c0468fcdd40bb92bcc2bb0ad8ea63143192 (patch)
tree923651c0b2b342396beb277c8c5f6cc9d3cc0704
parent5829791ffaca0178fbbd4111fbdf8c7cbd6de27f (diff)
downloadtinycc-48ae0c0468fcdd40bb92bcc2bb0ad8ea63143192.tar.gz
tinycc-48ae0c0468fcdd40bb92bcc2bb0ad8ea63143192.tar.bz2
Fixes for tests/Makefile.
- On x86-64, we need $(TARGET) in RUN_TCC. - s/RuN_TCC/RUN_TCC/
-rw-r--r--tests/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile
index c5a4165..a608c18 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -17,7 +17,7 @@ include $(TOP)/Makefile
# run local version of tcc with local libraries and includes
TCC = ../tcc -B..
-RUN_TCC = -run ../tcc.c -B..
+RUN_TCC = $(TARGET) -run ../tcc.c -B..
DISAS=objdump -d
all test : $(TESTS)
@@ -49,13 +49,13 @@ test1: test.ref
# iterated test2 (compile tcc then compile tcctest.c !)
test2: test.ref
@echo ------------ $@ ------------
- $(TCC) $(RUN_TCC) $(RuN_TCC) -run tcctest.c > test.out2
+ $(TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out2
@if diff -u test.ref test.out2 ; then echo "Auto Test2 OK"; fi
# iterated test3 (compile tcc then compile tcc then compile tcctest.c !)
test3: test.ref
@echo ------------ $@ ------------
- $(TCC) $(RUN_TCC) $(RuN_TCC) $(RUN_TCC) -run tcctest.c > test.out3
+ $(TCC) $(RUN_TCC) $(RUN_TCC) $(RUN_TCC) -run tcctest.c > test.out3
@if diff -u test.ref test.out3 ; then echo "Auto Test3 OK"; fi
# binary output test