diff options
| author | grischka <grischka> | 2007-11-25 22:14:35 +0000 |
|---|---|---|
| committer | grischka <grischka> | 2007-11-25 22:14:35 +0000 |
| commit | 2de1b2d14cc920e2c698ff0086f5558c2da7f569 (patch) | |
| tree | 0aae56cb8c3f1b04b60d25a97742bd4401958f8f /win32/build-tcc.bat | |
| parent | 2bcb9646940d276ae9ffd72705e0aa1c2042b15a (diff) | |
| download | tinycc-2de1b2d14cc920e2c698ff0086f5558c2da7f569.tar.gz tinycc-2de1b2d14cc920e2c698ff0086f5558c2da7f569.tar.bz2 | |
Some in-between fixes (See Changelog for details).
Diffstat (limited to 'win32/build-tcc.bat')
| -rw-r--r-- | win32/build-tcc.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat new file mode 100644 index 0000000..32cb5e1 --- /dev/null +++ b/win32/build-tcc.bat @@ -0,0 +1,30 @@ +@rem ---------------------------------------------------- +@rem batch file to build tcc using gcc and ar from mingw +@rem ---------------------------------------------------- +: +@if exist ..\config.h goto configready +: +@echo>..\config.h #define TCC_VERSION "0.9.24pre" +@echo>>..\config.h #define TCC_TARGET_PE 1 +@echo>>..\config.h #define CONFIG_TCCDIR NULL +: +:configready +: +gcc -Os -fno-strict-aliasing ../tcc.c -o tcc.exe -s +gcc -Os -fno-strict-aliasing ../tcc.c -D LIBTCC -c -o libtcc.o +gcc -Os -fno-strict-aliasing ../tiny_impdef.c -o tiny_impdef.exe -s +mkdir libtcc +ar rcs libtcc/libtcc.a libtcc.o +del libtcc.o +copy ..\libtcc.h libtcc +: +.\tcc -c lib/crt1.c +.\tcc -c lib/wincrt1.c +.\tcc -c lib/dllcrt1.c +.\tcc -c lib/dllmain.c +.\tcc -c lib/chkstk.S +.\tcc -c ../libtcc1.c +.\tcc -c ../alloca86.S +.\tcc -c ../alloca86-bt.S +ar rcs lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o alloca86-bt.o +del *.o |
