[allegro5] 01/03: Update compile_examples.sh to include new examples.
Tobias Hansen
thansen at moszumanska.debian.org
Tue Apr 26 19:59:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository allegro5.
commit 779205206b260bfe4b336b64bb516a5a42682612
Author: Tobias Hansen <thansen at localhost.localdomain>
Date: Tue Apr 26 20:09:01 2016 +0100
Update compile_examples.sh to include new examples.
---
debian/changelog | 1 +
debian/compile_examples.sh | 10 ++++++----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 437c47c..1585514 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ allegro5 (2:5.2.0-1) UNRELEASED; urgency=medium
liballegro-audio5.2.symbols and liballegro-dialog5.2.
* The symbol al_toggle_display_flag was removed from liballegro5.2.
* Update debian/watch.
+ * Update compile_examples.sh to include new examples.
-- Tobias Hansen <thansen at debian.org> Thu, 21 Apr 2016 16:13:21 +0100
diff --git a/debian/compile_examples.sh b/debian/compile_examples.sh
index d7b41d8..2df48a3 100644
--- a/debian/compile_examples.sh
+++ b/debian/compile_examples.sh
@@ -28,16 +28,18 @@ echo "Compiling examples..."
for i in ex_*.c; do
#ex_curl.c, ex_physfs.c and ex_glext.c are omitted because they need curl, physfs and glu around.
if test x$i != xex_curl.c -a x$i != xex_physfs.c -a x$i != xex_glext.c; then
- gcc $i -o $i.ex $ALLEGRO_LIBS
+ gcc $i -o $i.ex $ALLEGRO_LIBS -lm -lGL
fi
done
-for i in ex_audio_chain.cpp ex_audio_props.cpp ex_blend2.cpp ex_color.cpp ex_font_justify.cpp ex_pixelformat.cpp ex_synth.cpp nihgui.cpp; do
- g++ -c $i -o $i.o
+for i in ex_*.cpp nihgui.cpp; do
+ if test x$i != xex_d3d.cpp -a x$i != xex_ogre3d.cpp; then
+ g++ -c $i -o $i.o
+ fi
done
for i in ex_*.cpp.o; do
- g++ $i nihgui.cpp.o -o $i.ex $ALLEGRO_LIBS
+ g++ $i nihgui.cpp.o -o $i.ex $ALLEGRO_LIBS -lm -lGL
done
echo "Compiled example programs are now in ~/allegro5-examples"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/allegro5.git
More information about the Pkg-games-commits
mailing list