-
Notifications
You must be signed in to change notification settings - Fork 53
/
build_windows_mingw.bat
32 lines (25 loc) · 1.33 KB
/
build_windows_mingw.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cd src
gcc -s -O3 -malign-double -fno-strict-aliasing -fvisibility=hidden -DUMKA_BUILD -DUMKA_EXT_LIBS -Wall -Wno-format-security -c umka_api.c umka_common.c umka_compiler.c umka_const.c umka_decl.c umka_expr.c umka_gen.c umka_ident.c umka_lexer.c umka_runtime.c umka_stmt.c umka_types.c umka_vm.c
gcc -s -shared -Wl,--output-def=libumka.def -Wl,--out-implib=libumka.a -Wl,--dll *.o -o libumka.dll -static-libgcc -static
ar rcs libumka_static.a *.o
gcc -s -O3 -malign-double -fno-strict-aliasing -Wall -c umka.c
gcc -s umka.o -o umka.exe -static-libgcc -static -L%cd% -lm -lumka
del *.o
cd ..
mkdir umka_windows_mingw
move /y src\libumka* umka_windows_mingw
move /y src\umka.exe umka_windows_mingw
copy src\umka_api.h umka_windows_mingw
copy LICENSE umka_windows_mingw
copy Umka.sublime-syntax umka_windows_mingw
mkdir umka_windows_mingw\examples
mkdir umka_windows_mingw\examples\3dcam
mkdir umka_windows_mingw\examples\fractal
mkdir umka_windows_mingw\examples\lisp
mkdir umka_windows_mingw\examples\raytracer
mkdir umka_windows_mingw\doc
copy examples\3dcam\*.* umka_windows_mingw\examples\3dcam
copy examples\fractal\*.* umka_windows_mingw\examples\fractal
copy examples\lisp\*.* umka_windows_mingw\examples\lisp
copy examples\raytracer\*.* umka_windows_mingw\examples\raytracer
copy doc\*.* umka_windows_mingw\doc