Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphicsframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Behnke
graphicsframework
Commits
b7b74219
Commit
b7b74219
authored
16 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.sh
+27
-13
27 additions, 13 deletions
build.sh
src/starsphere/Makefile.macos
+1
-0
1 addition, 0 deletions
src/starsphere/Makefile.macos
with
28 additions
and
13 deletions
build.sh
+
27
−
13
View file @
b7b74219
...
...
@@ -208,7 +208,7 @@ build_generic()
./autogen.sh
>>
$LOGFILE
2>&1
||
failure
chmod
+x configure
>>
$LOGFILE
2>&1
||
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
else
$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()
export
STARSPHERE_INSTALL
=
$ROOT
/install
||
failure
cd
$ROOT
/build/starsphere
||
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
elif
[
"
$1
"
==
"
$TARGET_WIN32
"
]
;
then
cp
-f
$ROOT
/src/starsphere/Makefile.mingw Makefile
>>
$LOGFILE
2>&1
||
failure
...
...
@@ -469,8 +469,8 @@ build_linux()
build_mac
()
{
build_generic
$
TARGET_MAC
||
failure
build_starsphere
$
TARGET_MAC
||
failure
build_generic
$
1
||
failure
build_starsphere
$
1
||
failure
return
0
}
...
...
@@ -531,7 +531,8 @@ print_usage()
echo
echo
"Available targets:"
echo
" --linux"
echo
" --mac"
echo
" --mac-intel"
echo
" --mac-ppc"
echo
" --win32"
echo
" --doc"
echo
"*************************"
...
...
@@ -545,9 +546,10 @@ print_usage()
### main control ##########################################################
TARGET_LINUX
=
1
TARGET_MAC
=
2
TARGET_WIN32
=
3
TARGET_DOC
=
4
TARGET_MAC_INTEL
=
2
TARGET_MAC_PPC
=
4
TARGET_WIN32
=
8
TARGET_DOC
=
16
echo
"************************************"
|
tee
-a
$LOGFILE
echo
"Starting new build!"
|
tee
-a
$LOGFILE
...
...
@@ -567,10 +569,15 @@ case "$1" in
check_last_build
"
$1
"
||
failure
echo
"Building linux version:"
|
tee
-a
$LOGFILE
;;
"--mac"
)
TARGET
=
$TARGET_MAC
"--mac
-intel
"
)
TARGET
=
$TARGET_MAC
_INTEL
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"
)
TARGET
=
$TARGET_WIN32
...
...
@@ -605,10 +612,17 @@ case $TARGET in
prepare_generic
||
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
prepare_generic
||
failure
build_mac
||
failure
build_mac
$TARGET_MAC_PPC
||
failure
;;
$TARGET_WIN32
)
check_prerequisites
||
failure
...
...
This diff is collapsed.
Click to expand it.
src/starsphere/Makefile.macos
+
1
−
0
View file @
b7b74219
...
...
@@ -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/xml2-config
--cflags
)
CPPFLAGS
+=
-I
$(
STARSPHERE_INSTALL
)
/include/BOINC
-I
/usr/include
CPPFLAGS
+=
$(
CXXFALAGS
)
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment