Initial commit
This commit is contained in:
41
backends/platform/atari/build-release.sh
Normal file
41
backends/platform/atari/build-release.sh
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash -eux
|
||||
# -e: Exit immediately if a command exits with a non-zero status.
|
||||
# -u: Treat unset variables as an error when substituting.
|
||||
# -x: Display expanded script commands
|
||||
|
||||
mkdir -p build-release
|
||||
cd build-release
|
||||
|
||||
PLATFORM=m68k-atari-mintelf
|
||||
FASTCALL=false
|
||||
export ASFLAGS="-m68020-60"
|
||||
export CXXFLAGS="-m68020-60 -DUSE_MOVE16 -DUSE_SUPERVIDEL -DUSE_SV_BLITTER -DDISABLE_LAUNCHERDISPLAY_GRID"
|
||||
export LDFLAGS="-m68020-60"
|
||||
|
||||
export PKG_CONFIG_LIBDIR="$(${PLATFORM}-gcc -print-sysroot)/usr/lib/m68020-60/pkgconfig"
|
||||
|
||||
if $FASTCALL
|
||||
then
|
||||
ASFLAGS="$ASFLAGS -mfastcall"
|
||||
CXXFLAGS="$CXXFLAGS -mfastcall"
|
||||
LDFLAGS="$LDFLAGS -mfastcall"
|
||||
fi
|
||||
|
||||
if [ ! -f ../backends/platform/atari/.patched ]
|
||||
then
|
||||
cd .. && cat backends/platform/atari/patches/print_rate.patch | patch -p1 && cd -
|
||||
cd .. && cat backends/platform/atari/patches/tooltips.patch | patch -p1 && cd -
|
||||
touch ../backends/platform/atari/.patched
|
||||
fi
|
||||
|
||||
if [ ! -f config.log ]
|
||||
then
|
||||
../configure \
|
||||
--backend=atari \
|
||||
--host=${PLATFORM} \
|
||||
--enable-release \
|
||||
--enable-verbose-build \
|
||||
--disable-engine=hugo,director,cine,ultima
|
||||
fi
|
||||
|
||||
make -j$(getconf _NPROCESSORS_CONF) atarifulldist
|
||||
Reference in New Issue
Block a user