Unified · Split
| @@ -262,15 +262,19 @@ tar: · 261 unmodified lines | ||
| 262 | 262 | rm -rf /tmp/$(TCC-VERSION) |
| 263 | 263 | |
| 264 | 264 | # in tests subdir |
| 265 | −test clean : | |
| 265 | +test clean: | |
| 266 | 266 | $(MAKE) -C tests $@ |
| 267 | 267 | |
| 268 | +config.mak: | |
| 269 | + @echo Running configure ... | |
| 270 | + @./configure | |
| 271 | + | |
| 268 | 272 | # clean |
| 269 | 273 | clean: local_clean |
| 270 | 274 | local_clean: |
| 271 | 275 | rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.out libtcc_test$(EXESUF) |
| 272 | 276 | |
| 273 | 277 | distclean: clean |
| 274 | − rm -vf config.h config.mak config.texi tcc.1 tcc-doc.html | |
| 278 | + rm -vf config.h config.mak config.texi tcc.1 | |
| 275 | 279 | |
| 276 | 280 | endif # ifeq ($(TOP),.) |
| @@ -6,7 +6,7 @@ · 5 unmodified lines | ||
| 6 | 6 | TESTS = libtest test3 |
| 7 | 7 | |
| 8 | 8 | # these should work too |
| 9 | −# TESTS += test1 test2 speed btest | |
| 9 | +# TESTS += test1 test2 speedtest btest | |
| 10 | 10 | |
| 11 | 11 | # these don't work as they should |
| 12 | 12 | # TESTS += test4 asmtest |
| @@ -23,6 +23,7 @@ all test : $(TESTS) · 10 unmodified lines | ||
| 23 | 23 | |
| 24 | 24 | # make sure that tcc exists |
| 25 | 25 | $(TESTS) : ../tcc |
| 26 | + | |
| 26 | 27 | ../tcc ../libtcc.a : |
| 27 | 28 | $(MAKE) -C .. |
| 28 | 29 | |
| @@ -104,7 +105,7 @@ btest: boundtest.c · 75 unmodified lines | ||
| 104 | 105 | echo; echo Bound test OK |
| 105 | 106 | |
| 106 | 107 | # speed test |
| 107 | −speed: ex2 ex3 | |
| 108 | +speedtest: ex2 ex3 | |
| 108 | 109 | @echo ------------ $@ ------------ |
| 109 | 110 | time ./ex2 1238 2 3 4 10 13 4 |
| 110 | 111 | time $(TCC) -run ../examples/ex2.c 1238 2 3 4 10 13 4 |
| @@ -116,13 +117,13 @@ ex%: ../examples/ex%.c · 5 unmodified lines | ||
| 116 | 117 | |
| 117 | 118 | # tiny assembler testing |
| 118 | 119 | asmtest.ref: asmtest.S |
| 119 | − $(CC) -o asmtest.ref.o -c asmtest.S | |
| 120 | − objdump -D asmtest.ref.o > $@ | |
| 120 | + $(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S | |
| 121 | + objdump -D asmtest.ref.o > asmtest.ref | |
| 121 | 122 | |
| 122 | 123 | asmtest: asmtest.ref |
| 123 | 124 | @echo ------------ $@ ------------ |
| 124 | 125 | $(TCC) -c asmtest.S |
| 125 | − objdump -D asmtest.o > $@ | |
| 126 | + objdump -D asmtest.o > asmtest.out | |
| 126 | 127 | @if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi |
| 127 | 128 | |
| 128 | 129 | # targets for development |
| @@ -341,9 +341,9 @@ L3: · 340 unmodified lines | ||
| 341 | 341 | fnstcw 0x1002 |
| 342 | 342 | fstcw 0x1002 |
| 343 | 343 | fnstsw 0x1004 |
| 344 | − fnstsw %eax | |
| 344 | + fnstsw (%eax) | |
| 345 | 345 | fstsw 0x1004 |
| 346 | − fstsw %eax | |
| 346 | + fstsw (%eax) | |
| 347 | 347 | fnclex |
| 348 | 348 | fclex |
| 349 | 349 | fnstenv 0x1000 |