summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-05-09 12:15:44 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-05-09 12:15:44 +0000
commit3eee64398bdfde684199873793febadbd6fa4a19 (patch)
treeec32b6c263dd03edc0c7767f690087e2109a8631 /build
parent3a51283329635021b839c8abbea4fac6bd7fe688 (diff)
downloadbullet-lab-remix-3eee64398bdfde684199873793febadbd6fa4a19.tar.xz
Fix a bug in the credit scene.
Now the pause menu shouldn't be broken now...(It's so hard to reproduce that I have to assume it *has* been fixed.(IT STILL HAPPENS!!!) Close the "infinity CLR" "bug". (Huge) Code cleanup, mainly removing duplicate code. Allocate bullets dynamically. The array is freed every time a new game is started. Add a signal handler, print back trace on error(currently only available for linux...).
Diffstat (limited to 'build')
-rwxr-xr-xbuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/build b/build
index 12c7578..dab46d9 100755
--- a/build
+++ b/build
@@ -1,5 +1,6 @@
#!/bin/bash
cd hge
+#############################################################################
cd CxImage
echo Compiling CxImage...
g++ -c *.cpp -D_LINUX
@@ -7,6 +8,7 @@ ar rcs libCxImage.a *.o
rm *.o
cd ..
mv ./CxImage/libCxImage.a libCxImage.a
+#############################################################################
cd ZLIB
echo Compiling zlib...
gcc -c *.c
@@ -14,12 +16,14 @@ 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
@@ -27,10 +31,12 @@ 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 .. \ No newline at end of file