| @@ -103,10 +103,10 @@ moretests: · 102 unmodified lines |
| 103 | w32-prep: | 103 | w32-prep: |
| 104 | cp ../libtcc1.a ../lib | 104 | cp ../libtcc1.a ../lib |
| 105 | | 105 | |
| 106 | # test.ref - generate using gcc | 106 | # test.ref - generate using cc |
| 107 | test.ref: tcctest.c | 107 | test.ref: tcctest.c |
| 108 | gcc -o tcctest.gcc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS) | 108 | $(CC) -o tcctest.cc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS) |
| 109 | ./tcctest.gcc > $@ | 109 | ./tcctest.cc > $@ |
| 110 | | 110 | |
| 111 | # auto test | 111 | # auto test |
| 112 | test1 test1b: tcctest.c test.ref | 112 | test1 test1b: tcctest.c test.ref |
| @@ -183,10 +183,10 @@ speedtest: ex2 ex3 · 70 unmodified lines |
| 183 | | 183 | |
| 184 | weaktest: tcctest.c test.ref | 184 | weaktest: tcctest.c test.ref |
| 185 | $(TCC) -c $< -o weaktest.tcc.o $(CPPFLAGS) $(CFLAGS) | 185 | $(TCC) -c $< -o weaktest.tcc.o $(CPPFLAGS) $(CFLAGS) |
| 186 | $(CC) -c $< -o weaktest.gcc.o -I. $(CPPFLAGS) -w $(CFLAGS) | 186 | $(CC) -c $< -o weaktest.cc.o -I. $(CPPFLAGS) -w $(CFLAGS) |
| 187 | objdump -t weaktest.tcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.tcc.o.txt | 187 | objdump -t weaktest.tcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.tcc.o.txt |
| 188 | objdump -t weaktest.gcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.gcc.o.txt | 188 | objdump -t weaktest.cc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.cc.o.txt |
| 189 | diff weaktest.gcc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK" | 189 | diff weaktest.cc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK" |
| 190 | | 190 | |
| 191 | ex%: $(top_srcdir)/examples/ex%.c | 191 | ex%: $(top_srcdir)/examples/ex%.c |
| 192 | $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) | 192 | $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) |
| @@ -239,6 +239,6 @@ cache: tcc_g · 46 unmodified lines |
| 239 | # clean | 239 | # clean |
| 240 | clean: | 240 | clean: |
| 241 | $(MAKE) -C tests2 $@ | 241 | $(MAKE) -C tests2 $@ |
| 242 | rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.gcc *.exe \ | 242 | rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.cc *.exe \ |
| 243 | hello libtcc_test tcctest[1234] ex? tcc_g tcclib.h \ | 243 | hello libtcc_test tcctest[1234] ex? tcc_g tcclib.h \ |
| 244 | ../lib/libtcc1.a | 244 | ../lib/libtcc1.a |