aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorgrischka <grischka>2009-07-06 21:11:19 +0200
committerunknown <gr@.(none)>2009-07-18 21:54:51 +0200
commit045cff28fe6da98fc020a4a2bf72ffaaf3d48a02 (patch)
treed684cd63cfc304ec463609e7daeec57b6089d775 /tests/Makefile
parent0085c648f6e9f016f937107ce68651987b001ddf (diff)
downloadtinycc-045cff28fe6da98fc020a4a2bf72ffaaf3d48a02.tar.gz
tinycc-045cff28fe6da98fc020a4a2bf72ffaaf3d48a02.tar.bz2
fix asmtest (somehow), update Makefiles
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 98e1b3e..f91e4fd 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -6,7 +6,7 @@
TESTS = libtest test3
# these should work too
-# TESTS += test1 test2 speed btest
+# TESTS += test1 test2 speedtest btest
# these don't work as they should
# TESTS += test4 asmtest
@@ -23,6 +23,7 @@ all test : $(TESTS)
# make sure that tcc exists
$(TESTS) : ../tcc
+
../tcc ../libtcc.a :
$(MAKE) -C ..
@@ -104,7 +105,7 @@ btest: boundtest.c
echo; echo Bound test OK
# speed test
-speed: ex2 ex3
+speedtest: ex2 ex3
@echo ------------ $@ ------------
time ./ex2 1238 2 3 4 10 13 4
time $(TCC) -run ../examples/ex2.c 1238 2 3 4 10 13 4
@@ -116,13 +117,13 @@ ex%: ../examples/ex%.c
# tiny assembler testing
asmtest.ref: asmtest.S
- $(CC) -o asmtest.ref.o -c asmtest.S
- objdump -D asmtest.ref.o > $@
+ $(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S
+ objdump -D asmtest.ref.o > asmtest.ref
asmtest: asmtest.ref
@echo ------------ $@ ------------
$(TCC) -c asmtest.S
- objdump -D asmtest.o > $@
+ objdump -D asmtest.o > asmtest.out
@if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi
# targets for development