Unified · Split
| @@ -104,7 +104,7 @@ rebuild: · 103 unmodified lines | ||
| 104 | 104 | @echo Rebuild using tcc itself - default $(TARGET)bits |
| 105 | 105 | @./$(TARCH)-win32-tcc $(TFLAGS) -DTCC_TARGET_PE -DONE_SOURCE -o tcc.exe ../tcc.c |
| 106 | 106 | @./tcc $(TFLAGS) -DTCC_TARGET_PE -DONE_SOURCE -DLIBTCC_AS_DLL -o libtcc.dll -shared ../libtcc.c |
| 107 | − @./tcc -m$(TARGET) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe i386-win32-tcc.exe | |
| 107 | + @./tcc -m32 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe i386-win32-tcc.exe | |
| 108 | 108 | @./tcc -m$(TARGET) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe x86_64-win32-tcc.exe |
| 109 | 109 | |
| 110 | 110 | PHONY += rebuild |
| @@ -112,6 +112,10 @@ PHONY += rebuild · 1 unmodified line | ||
| 112 | 112 | test: |
| 113 | 113 | @(cd ../tests; $(MAKE) -k TCC=$(PWD)/tcc hello-exe hello-run) |
| 114 | 114 | @(cd ../tests; $(MAKE) -k TCC=$(PWD)/tcc vla_test-run tests2-dir pp-dir) |
| 115 | +ifeq ($(CPU), 64) | |
| 116 | + @(cd ../tests; $(MAKE) -k TCC=$(PWD)/i386-win32-tcc hello-exe hello-run) | |
| 117 | + @(cd ../tests; $(MAKE) -k TCC=$(PWD)/i386-win32-tcc vla_test-run tests2-dir pp-dir) | |
| 118 | +endif | |
| 115 | 119 | |
| 116 | 120 | PHONY += test |
| 117 | 121 | |