added configure script
authorJavier S. Pedro <maemo@javispedro.com>
Sun, 11 Oct 2009 16:12:35 +0000 (18:12 +0200)
committerJavier S. Pedro <maemo@javispedro.com>
Sun, 11 Oct 2009 16:12:35 +0000 (18:12 +0200)
configure [new file with mode: 0755]

diff --git a/configure b/configure
new file mode 100755 (executable)
index 0000000..dc477fb
--- /dev/null
+++ b/configure
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+if [ -r /etc/maemo_version ]; then
+       #We are on Maemo
+       debian/rules configure
+       exit
+fi
+
+ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)
+GAME_VERSION=$(head -n 1 debian/changelog | sed 's/[^0-9.-]//g')
+
+echo ARCH="${ARCH}" > config.mk
+echo CONF_HGW=0 >> config.mk
+echo CONF_XSP=0 >> config.mk
+echo ASFLAGS="" >> config.mk
+echo CFLAGS="-Wall -g -O2" >> config.mk
+echo CXXFLAGS="-Wall -g -O2" >> config.mk
+echo LDFLAGS="-Wl,-z,defs" >> config.mk
+