blob: 12c75780c63bdf61a57bdd9ee1c47a16155ddb27 (
plain) (
blame)
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
|
#!/bin/bash
cd hge
cd CxImage
echo Compiling CxImage...
g++ -c *.cpp -D_LINUX
ar rcs libCxImage.a *.o
rm *.o
cd ..
mv ./CxImage/libCxImage.a libCxImage.a
cd ZLIB
echo Compiling zlib...
gcc -c *.c
ar rcs libz.a *.o
rm *.o
cd ..
mv ./ZLIB/libz.a libz.a
echo Compiling libhge...
g++ -c *.cpp -I/usr/include/SDL/ -I../include
ar rcs libhge.a *.o
rm *.o
cd ..
mv ./hge/*.a ./
cd hgehelp
echo Compiling libhgehelp...
g++ -c *.cpp -I../include
ar rcs libhgehelp.a *.o
rm *.o
cd ..
mv ./hgehelp/libhgehelp.a libhgehelp.a
echo Compiling the main executable...
g++ *.cpp -I/usr/include/freetype2 -I./include \
-lSDL -lvorbis -lvorbisfile -lopenal -ljpeg -lpng -lfreetype \
-Wl,libhgehelp.a,libhge.a,libCxImage.a,libz.a -o BulletLabRemixII
rm *.a
strip BulletLabRemixII
cd ..
|