2006-10-06 19:01:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2008-01-27 19:47:41 +00:00
|
|
|
echo Quick script to make running configure all the time less painful
|
2006-10-06 19:01:39 +00:00
|
|
|
echo and let all the build work be done from the backend/build folder.
|
|
|
|
|
|
|
|
# Set the paths up here to generate the config.
|
|
|
|
|
2007-02-07 15:57:55 +00:00
|
|
|
PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
|
|
|
|
PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
|
2006-10-06 19:01:39 +00:00
|
|
|
|
|
|
|
# Export the tool names for cross-compiling
|
|
|
|
export CXX=arm-open2x-linux-g++
|
|
|
|
export CXXFLAGS=-march=armv4t
|
2007-02-07 15:57:55 +00:00
|
|
|
export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
|
2008-01-27 19:47:41 +00:00
|
|
|
export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
|
|
|
|
export DEFINES=-DNDEBUG
|
2006-10-06 19:01:39 +00:00
|
|
|
|
|
|
|
# Edit the configure line to suit.
|
|
|
|
cd ../../../..
|
2011-06-01 23:17:43 +02:00
|
|
|
./configure --backend=gp2x --disable-mt32emu --host=gp2x \
|
|
|
|
--disable-flac --disable-nasm --disable-hq-scalers \
|
|
|
|
--with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin \
|
|
|
|
--enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
|
|
|
|
--enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
|
|
|
|
--enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
|
2011-05-08 22:40:19 +01:00
|
|
|
--enable-vkeybd
|
|
|
|
|
2010-10-20 13:00:58 +00:00
|
|
|
# --enable-plugins --default-dynamic
|
2011-05-08 22:40:19 +01:00
|
|
|
# --disable-release --enable-debug
|
2006-10-06 19:01:39 +00:00
|
|
|
|
2007-02-07 15:57:55 +00:00
|
|
|
echo Generating config for GP2X complete. Check for errors.
|