-
Notifications
You must be signed in to change notification settings - Fork 31
/
cross-build-gp2x.sh
executable file
·17 lines (9 loc) · 1.14 KB
/
cross-build-gp2x.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh
export PATH=/gp2xsdk/Tools/bin:$PATH
export LD_LIBRARY_PATH=/gp2xsdk/Tools/lib:$LD_LIBRARY_PATH
test -d build/temp.arm-gp2x-linux || mkdir build/temp.arm-gp2x-linux
test -d build/lib.arm-gp2x-linux || mkdir build/lib.arm-gp2x-linux
arm-gp2x-linux-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -D_GNU_SOURCE -fPIC -I/gp2xsdk/installed/include/python2.4 -I/gp2xsdk/installed/include/SDL -I/gp2xsdk/Tools/arm-gp2x-linux/include/SDL -c _pycdgAux.c -o build/temp.arm-gp2x-linux/_pycdgAux.o || exit
arm-gp2x-linux-gcc -pthread -shared -L/gp2xsdk/installed/lib -L/gp2xsdk/Tools/arm-gp2x-linux/lib build/temp.arm-gp2x-linux/_pycdgAux.o -o build/lib.arm-gp2x-linux/_pycdgAux.so -lSDL || exit
arm-gp2x-linux-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -D_GNU_SOURCE -fPIC -I/gp2xsdk/installed/include/python2.4 -c _cpuctrl.c -o build/temp.arm-gp2x-linux/_cpuctrl.o || exit
arm-gp2x-linux-gcc -pthread -shared -L/gp2xsdk/installed/lib -L/gp2xsdk/Tools/arm-gp2x-linux/lib build/temp.arm-gp2x-linux/_cpuctrl.o -o build/lib.arm-gp2x-linux/_cpuctrl.so || exit