aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2004-03-29 11:59:09 +0000
committerJonathan Gray2004-03-29 11:59:09 +0000
commit69951579085c3fb18fb26931ba69450df9bebc33 (patch)
treeb25568d37ea14152d90e96e706bb5d61bd1f5d58
parentf12fbe17236698bd81f6bd856bf311eeb7ddbb14 (diff)
downloadscummvm-rg350-69951579085c3fb18fb26931ba69450df9bebc33.tar.gz
scummvm-rg350-69951579085c3fb18fb26931ba69450df9bebc33.tar.bz2
scummvm-rg350-69951579085c3fb18fb26931ba69450df9bebc33.zip
use a make variable for static os x package prefix so I don't have to change as many lines, it should probably be changeable via the configure script at some point
svn-id: r13426
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5bb27c8970..454930530e 100644
--- a/Makefile
+++ b/Makefile
@@ -98,14 +98,19 @@ bundle: scummvm-static
cp $(srcdir)/scummvm-static $(bundle_name)/Contents/MacOS/scummvm
strip $(bundle_name)/Contents/MacOS/scummvm
+# location of additional libs for OS X usually /sw/ for fink or
+# /opt/local/ for darwinports
+OSXOPT=/sw
# Special target to create a static linked binary for Mac OS X
scummvm-static: $(OBJS)
$(CXX) $(LDFLAGS) -o scummvm-static $(OBJS) \
`sdl-config --static-libs` \
- /sw/lib/libmad.a \
- /sw/lib/libvorbisfile.a /sw/lib/libvorbis.a /sw/lib/libogg.a \
- /sw/lib/libmpeg2.a \
- /sw/lib/libFLAC.a \
+ $(OSXOPT)/lib/libmad.a \
+ $(OSXOPT)/lib/libvorbisfile.a \
+ $(OSXOPT)/lib/libvorbis.a \
+ $(OSXOPT)/lib/libogg.a \
+ $(OSXOPT)/lib/libmpeg2.a \
+ $(OSXOPT)/lib/libFLAC.a \
-lz
# Special target to create a win32 snapshot binary