Skip to content
Snippets Groups Projects
Commit b7b74219 authored by Oliver Bock's avatar Oliver Bock
Browse files

Distinguish Intel from PPC (mac builds)

* Dedicated build targets
* Using G3 as CPU type on PPC
parent 64e15583
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ build_generic() ...@@ -208,7 +208,7 @@ build_generic()
./autogen.sh >> $LOGFILE 2>&1 || failure ./autogen.sh >> $LOGFILE 2>&1 || failure
chmod +x configure >> $LOGFILE 2>&1 || failure chmod +x configure >> $LOGFILE 2>&1 || failure
cd $ROOT/build/sdl || failure cd $ROOT/build/sdl || failure
if [ "$1" == "$TARGET_MAC" ]; then if [ "$1" == "$TARGET_MAC_INTEL" -o "$1" == "$TARGET_MAC_PPC" ]; then
$ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --enable-screensaver=yes --enable-video-x11=no >> $LOGFILE 2>&1 || failure $ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --enable-screensaver=yes --enable-video-x11=no >> $LOGFILE 2>&1 || failure
else else
$ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --enable-screensaver=yes >> $LOGFILE 2>&1 || failure $ROOT/3rdparty/sdl/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --enable-screensaver=yes >> $LOGFILE 2>&1 || failure
...@@ -443,7 +443,7 @@ build_starsphere() ...@@ -443,7 +443,7 @@ build_starsphere()
export STARSPHERE_INSTALL=$ROOT/install || failure export STARSPHERE_INSTALL=$ROOT/install || failure
cd $ROOT/build/starsphere || failure cd $ROOT/build/starsphere || failure
cp $ROOT/src/starsphere/*.res . >> $LOGFILE 2>&1 || failure cp $ROOT/src/starsphere/*.res . >> $LOGFILE 2>&1 || failure
if [ "$1" == "$TARGET_MAC" ]; then if [ "$1" == "$TARGET_MAC_INTEL" ] || [ "$1" == "$TARGET_MAC_PPC" ]; then
cp -f $ROOT/src/starsphere/Makefile.macos Makefile >> $LOGFILE 2>&1 || failure cp -f $ROOT/src/starsphere/Makefile.macos Makefile >> $LOGFILE 2>&1 || failure
elif [ "$1" == "$TARGET_WIN32" ]; then elif [ "$1" == "$TARGET_WIN32" ]; then
cp -f $ROOT/src/starsphere/Makefile.mingw Makefile >> $LOGFILE 2>&1 || failure cp -f $ROOT/src/starsphere/Makefile.mingw Makefile >> $LOGFILE 2>&1 || failure
...@@ -469,8 +469,8 @@ build_linux() ...@@ -469,8 +469,8 @@ build_linux()
build_mac() build_mac()
{ {
build_generic $TARGET_MAC || failure build_generic $1 || failure
build_starsphere $TARGET_MAC || failure build_starsphere $1 || failure
return 0 return 0
} }
...@@ -531,7 +531,8 @@ print_usage() ...@@ -531,7 +531,8 @@ print_usage()
echo echo
echo "Available targets:" echo "Available targets:"
echo " --linux" echo " --linux"
echo " --mac" echo " --mac-intel"
echo " --mac-ppc"
echo " --win32" echo " --win32"
echo " --doc" echo " --doc"
echo "*************************" echo "*************************"
...@@ -545,9 +546,10 @@ print_usage() ...@@ -545,9 +546,10 @@ print_usage()
### main control ########################################################## ### main control ##########################################################
TARGET_LINUX=1 TARGET_LINUX=1
TARGET_MAC=2 TARGET_MAC_INTEL=2
TARGET_WIN32=3 TARGET_MAC_PPC=4
TARGET_DOC=4 TARGET_WIN32=8
TARGET_DOC=16
echo "************************************" | tee -a $LOGFILE echo "************************************" | tee -a $LOGFILE
echo "Starting new build!" | tee -a $LOGFILE echo "Starting new build!" | tee -a $LOGFILE
...@@ -567,10 +569,15 @@ case "$1" in ...@@ -567,10 +569,15 @@ case "$1" in
check_last_build "$1" || failure check_last_build "$1" || failure
echo "Building linux version:" | tee -a $LOGFILE echo "Building linux version:" | tee -a $LOGFILE
;; ;;
"--mac") "--mac-intel")
TARGET=$TARGET_MAC TARGET=$TARGET_MAC_INTEL
check_last_build "$1" || failure check_last_build "$1" || failure
echo "Building mac version:" | tee -a $LOGFILE echo "Building mac (Intel) version:" | tee -a $LOGFILE
;;
"--mac-ppc")
TARGET=$TARGET_MAC_PPC
check_last_build "$1" || failure
echo "Building mac (PPC) version:" | tee -a $LOGFILE
;; ;;
"--win32") "--win32")
TARGET=$TARGET_WIN32 TARGET=$TARGET_WIN32
...@@ -605,10 +612,17 @@ case $TARGET in ...@@ -605,10 +612,17 @@ case $TARGET in
prepare_generic || failure prepare_generic || failure
build_linux || failure build_linux || failure
;; ;;
$TARGET_MAC) $TARGET_MAC_INTEL)
check_prerequisites || failure
prepare_generic || failure
build_mac $TARGET_MAC_INTEL || failure
;;
$TARGET_MAC_PPC)
export CFLAGS=-mcpu=G3 || failure
export CXXFLAGS=-mcpu=G3 || failure
check_prerequisites || failure check_prerequisites || failure
prepare_generic || failure prepare_generic || failure
build_mac || failure build_mac $TARGET_MAC_PPC || failure
;; ;;
$TARGET_WIN32) $TARGET_WIN32)
check_prerequisites || failure check_prerequisites || failure
......
...@@ -39,6 +39,7 @@ CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --cflags) ...@@ -39,6 +39,7 @@ CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --cflags)
CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --cflags) CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --cflags)
CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/xml2-config --cflags) CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/xml2-config --cflags)
CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/BOINC -I/usr/include CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/BOINC -I/usr/include
CPPFLAGS += $(CXXFALAGS)
DEPS = Makefile DEPS = Makefile
OBJS = Starsphere.o StarsphereS5R3.o StarsphereRadio.o EinsteinS5R3Adapter.o EinsteinRadioAdapter.o starlist.o snr_list.o pulsar_list.o SetMacSSLevel.o $(RESOURCESPEC).o OBJS = Starsphere.o StarsphereS5R3.o StarsphereRadio.o EinsteinS5R3Adapter.o EinsteinRadioAdapter.o starlist.o snr_list.o pulsar_list.o SetMacSSLevel.o $(RESOURCESPEC).o
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment