forked from haithun/CoD4X17a_testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_cod4x17a_mach-o.sh
executable file
·31 lines (25 loc) · 1.78 KB
/
build_cod4x17a_mach-o.sh
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
echo Compiling C-code...
cd bin
gcc -m32 -Wall -O0 -g -fno-omit-frame-pointer -I../lib_tomcrypt/headers -D COD4X17A -I../lib_tomcrypt/math/tommath -c ../src/unix/sys_unix.c
gcc -m32 -Wall -O0 -g -fno-omit-frame-pointer -I../lib_tomcrypt/headers -D COD4X17A -I../lib_tomcrypt/math/tommath -c ../src/unix/sys_mach.c
gcc -m32 -Wall -O0 -g -fno-omit-frame-pointer -I../lib_tomcrypt/headers -D COD4X17A -I../lib_tomcrypt/math/tommath -c ../src/unix/sys_cod4linker_mach.c
gcc -m32 -Wall -O0 -g -fno-omit-frame-pointer -I../lib_tomcrypt/headers -D COD4X17A -I../lib_tomcrypt/math/tommath -c ../src/unix/sys_con_tty.c
gcc -m32 -Wall -O0 -g -fno-omit-frame-pointer -I../lib_tomcrypt/headers -D COD4X17A -I../lib_tomcrypt/math/tommath -c ../src/*.c
gcc -m32 -Wall -O0 -g -fno-omit-frame-pointer -c ../src/zlib/*.c
cd ../
echo Compiling NASM...
nasm -f macho src/qcommon_hooks.asm --prefix _ -o bin/qcommon_hooks.o
nasm -f macho src/cmd_hooks.asm --prefix _ -o bin/cmd_hooks.o
nasm -f macho src/filesystem_hooks.asm --prefix _ -o bin/filesystem_hooks.o
nasm -f macho src/xassets_hooks.asm --prefix _ -o bin/xassets_hooks.o
nasm -f macho src/trace_hooks.asm --prefix _ -o bin/trace_hooks.o
nasm -f macho src/misc_hooks.asm --prefix _ -o bin/misc_hooks.o
nasm -f macho src/scr_vm_hooks.asm --prefix _ -o bin/scr_vm_hooks.o
nasm -f macho src/g_sv_hooks.asm --prefix _ -o bin/g_sv_hooks.o
nasm -f macho src/server_hooks.asm --prefix _ -o bin/server_hooks.o
nasm -f macho src/msg_hooks.asm --prefix _ -o bin/msg_hooks.o
nasm -f macho src/pluginexports.asm --prefix _ -o bin/pluginexports.o
echo Linking...
gcc -m32 -stdlib=libc++ -rdynamic -o bin/cod4x17a_dedrun bin/*.o -Llib/ -ltomcrypt_mach -ltommath_mach -Wl -ldl -lpthread -lm -lstdc++
#rm bin/*.o
./version_make_progress.sh