2007-11-26 01:14:35 +03:00
|
|
|
@rem ----------------------------------------------------
|
|
|
|
@rem batch file to build tcc using gcc and ar from mingw
|
|
|
|
@rem ----------------------------------------------------
|
|
|
|
:
|
2009-05-11 21:01:26 +04:00
|
|
|
@echo>..\config.h #define TCC_VERSION "0.9.25"
|
2007-11-26 01:14:35 +03:00
|
|
|
@echo>>..\config.h #define TCC_TARGET_PE 1
|
2008-03-26 00:05:48 +03:00
|
|
|
@echo>>..\config.h #define CONFIG_TCCDIR "."
|
2008-11-29 23:51:22 +03:00
|
|
|
@echo>>..\config.h #define CONFIG_SYSROOT ""
|
2007-11-26 01:14:35 +03:00
|
|
|
:
|
|
|
|
gcc -Os -fno-strict-aliasing ../tcc.c -o tcc.exe -s
|
2009-05-05 22:41:17 +04:00
|
|
|
gcc -Os -fno-strict-aliasing ../libtcc.c -c -o libtcc.o
|
2008-03-08 22:55:47 +03:00
|
|
|
gcc -Os tools/tiny_impdef.c -o tiny_impdef.exe -s
|
|
|
|
gcc -Os tools/tiny_libmaker.c -o tiny_libmaker.exe -s
|
2007-11-26 01:14:35 +03:00
|
|
|
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
|
2009-04-18 16:31:35 +04:00
|
|
|
.\tcc -c ../lib/libtcc1.c
|
|
|
|
.\tcc -c ../lib/alloca86.S
|
|
|
|
.\tcc -c ../lib/alloca86-bt.S
|
2007-11-26 01:14:35 +03:00
|
|
|
ar rcs lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o alloca86-bt.o
|
|
|
|
del *.o
|