-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·28 lines (20 loc) · 1 KB
/
configure
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
#!/bin/bash
if [ -r /etc/maemo_version ]; then
#We are on Maemo
fakeroot debian/rules clean > /dev/null
debian/rules configure > /dev/null
echo "Configured for Maemo build. You can dpkg-buildpackage now."
exit 0
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_GUI=1 >> config.mk
echo CONF_XSP=1 >> config.mk
echo ASFLAGS="" >> config.mk
echo CFLAGS="-Wall -g -O3 -march=native -mtune=native -mfpu=neon-fp16 -mfloat-abi=hard -ftree-vectorize -fno-strict-overflow -mno-unaligned-access -funsafe-math-optimizations -fno-exceptions -fno-rtti " >> config.mk
echo CXXFLAGS="-Wall -g -O3 -march=native -mtune=native -mfpu=neon-fp16 -mfloat-abi=hard -ftree-vectorize -fno-strict-overflow -mno-unaligned-access -funsafe-math-optimizations -fno-exceptions -fno-rtti " >> config.mk
echo LDFLAGS="-Wl,-z,defs" >> config.mk
make clean > /dev/null
echo "Configured for non-Maemo $ARCH build. You can make now."
exit 0