forked from haithun/CoD4X17a_testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildscript.sh
executable file
·45 lines (33 loc) · 1.83 KB
/
buildscript.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#gcc -m32 -Wall -O1 -g -c -s -fvisibility=hidden cod4_extfunc.c
#gcc -m32 -Wall -fvisibility=hidden -mfpmath=sse -march=atom -c cod4_extfunc.c
#gcc -m32 -Wall -fvisibility=hidden -march=atom -c cod4_extfunc.c
#gcc -m32 -Wall -O1 -fvisibility=hidden -fno-omit-frame-pointer -c cod4_extfunc.c
#gcc -m32 -Wall -O1 -s -fvisibility=hidden -fno-omit-frame-pointer -mtune=prescott -c cod4_extfunc.c
echo Compiling C-code...
gcc -m32 -Wall -O1 -g -fno-omit-frame-pointer -mtune=prescott -c *.c | more
#gcc -m32 -Wall -O1 -s -fvisibility=hidden -fno-omit-frame-pointer -march=core2 -c cod4_extfunc.c
#gcc -m32 -Wall -O1 -s -fvisibility=hidden -fno-omit-frame-pointer -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -c cod4_extfunc.c
#gcc -m32 -Wall -O1 -g -fvisibility=hidden -fno-omit-frame-pointer -march=corei7 -c cod4_extfunc.c
#gcc -m32 -Wall -O1 -g -fvisibility=hidden -fno-omit-frame-pointer -mfpmath=sse -march=atom -c cod4_extfunc.c
#gcc -m32 -Wall -O1 -fvisibility=hidden -fno-omit-frame-pointer -march=amdfam10 -c cod4_extfunc.c
#gcc -m32 -s -shared -fvisibility=hidden -Wl,-soname,cod4x17a.so -o cod4x17a.so *.o
echo Compiling NASM...
nasm -f elf qcommon_hooks.asm
nasm -f elf cmd_hooks.asm
nasm -f elf cvar_hooks.asm
nasm -f elf filesystem_hooks.asm
nasm -f elf sys_thread_hooks.asm
nasm -f elf punkbuster_hooks.asm
nasm -f elf sys_main_hooks.asm
nasm -f elf xassets_hooks.asm
nasm -f elf trace_hooks.asm
nasm -f elf misc_hooks.asm
nasm -f elf scr_vm_hooks.asm
nasm -f elf g_sv_hooks.asm
nasm -f elf server_hooks.asm
nasm -f elf msg_hooks.asm
echo Linking...
gcc -m32 -Wl,-ldl,-lpthread,-lm,-Tlinkerscript.ld,--dynamic-list=pluginExports.ld -o cod4x17a_dedrun *.o
#gcc -m32 -shared -fvisibility=hidden -Wl,-soname,cod4x17a.so -o cod4x17a.so *.o
rm *.o
./version_make_progress.sh