1#!/bin/bash
2
3echo Quick script to make running configure all the time less painful
4echo and let all the build work be done from the backend/build folder.
5
6# Set the paths up here to generate the config.
7
8PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
9PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
10
11# Export the tool names for cross-compiling
12export CXX=arm-open2x-linux-g++
13export CXXFLAGS=-march=armv4t
14export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
15export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
16export DEFINES=-DNDEBUG
17
18# Edit the configure line to suit.
19cd ../../../..
20./configure --backend=gp2x --disable-mt32emu --host=gp2x \
21  --disable-flac --disable-nasm --disable-hq-scalers \
22  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin \
23  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
24  --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
25  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
26  --enable-all-engines --enable-vkeybd
27#--enable-plugins --default-dynamic
28
29echo Generating config for GP2X complete. Check for errors.
30