Lines 3-14
Link Here
|
3 |
# Small and ugly "static compiler" for Raydium apps, with ODE |
3 |
# Small and ugly "static compiler" for Raydium apps, with ODE |
4 |
# Use "./ocomp.sh test6.c" for example. |
4 |
# Use "./ocomp.sh test6.c" for example. |
5 |
|
5 |
|
|
|
6 |
OUTPUT_FILE=`echo $1 | cut -f1 -d.` |
6 |
ulimit -c 0 |
7 |
ulimit -c 0 |
7 |
rm test |
8 |
gcc -g $1 -Wall -o $OUTPUT_FILE -L/usr/X11R6/lib/ -lXinerama -lGL -lGLU -lm -lopenal -lalut -ljpeg \ |
8 |
gcc -g $1 -Wall -o test -L/usr/X11R6/lib/ -lXinerama -lGL -lGLU -lm -lopenal -lalut -ljpeg \ |
|
|
9 |
-Iraydium/ode/include/ raydium/ode/lib/libode.a -lvorbis -lvorbisfile -logg \ |
9 |
-Iraydium/ode/include/ raydium/ode/lib/libode.a -lvorbis -lvorbisfile -logg \ |
10 |
-Iraydium/php/ -Iraydium/php/include -Iraydium/php/main/ -Iraydium/php/Zend -Iraydium/php/TSRM raydium/php/libs/libphp5.a \ |
10 |
-Iraydium/php/ -Iraydium/php/include -Iraydium/php/main/ -Iraydium/php/Zend -Iraydium/php/TSRM raydium/php/libs/libphp5.a \ |
11 |
-lresolv -lcrypt -lz -lcurl -lxml2 -lGLEW |
11 |
-lresolv -lcrypt -lz -lcurl -lxml2 -lGLEW |
12 |
sync |
12 |
sync |
13 |
shift |
|
|
14 |
./test "$@" |