1 @rem ----------------------------------------------------
2 @rem batch file to build tcc using gcc and ar from mingw
3 @rem ----------------------------------------------------
5 @echo>..\config.h #define TCC_VERSION "0.9.25"
6 @echo>>..\config.h #define TCC_TARGET_PE 1
7 @echo>>..\config.h #define CONFIG_TCCDIR "."
8 @echo>>..\config.h #define CONFIG_SYSROOT ""
10 gcc -Os -fno-strict-aliasing ../tcc.c -o tcc.exe -s
11 gcc -Os -fno-strict-aliasing ../libtcc.c -c -o libtcc.o
12 gcc -Os tools/tiny_impdef.c -o tiny_impdef.exe -s
13 gcc -Os tools/tiny_libmaker.c -o tiny_libmaker.exe -s
15 ar rcs libtcc/libtcc.a libtcc.o
17 copy ..\libtcc.h libtcc
20 .\tcc -c lib/wincrt1.c
21 .\tcc -c lib/dllcrt1.c
22 .\tcc -c lib/dllmain.c
24 .\tcc -c ../lib/libtcc1.c
25 .\tcc -c ../lib/alloca86.S
26 .\tcc -c ../lib/alloca86-bt.S
27 ar rcs lib/libtcc1.a crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o libtcc1.o alloca86.o alloca86-bt.o