summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-12-06 22:09:28 +0000
committerbjarni <bjarni@openttd.org>2005-12-06 22:09:28 +0000
commit967abb24e48088104b980a7c86d448c2227ac683 (patch)
tree14795fb4adbdcb7f1d354aa91892460f98fd42ed /Makefile
parentbab6f56967df9632b0524ade4825d1b83977dc68 (diff)
downloadopenttd-967abb24e48088104b980a7c86d448c2227ac683.tar.xz
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
now PPC code is always compiled before x86 code strgen and lng files are only compiled once, which results in shorter building time the makefile now assigns default values to undefined values so much less needs to be set up the code is now easier to maintain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 4 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index 075768d3f..1c544d505 100644
--- a/Makefile
+++ b/Makefile
@@ -170,19 +170,6 @@ ifndef SDL-CONFIG
CONFIG_INCLUDED:=
endif
-ifdef UNIVERSAL_OTHER_HALF
- ifndef CC_HOST
- # we are crosscompiling, so we should remember what compiler we should use for strgen
- CC_HOST = $(CC)
- endif
- CC_TARGET = $(CC_UNI)
- CFLAGS = $(CFLAGS_UNI)
- LDFLAGS = $(LDFLAGS_UNI)
- SDL-CONFIG = $(SDL-CONFIG_UNI)
- LIBPNG-CONFIG = $(LIBPNG-CONFIG_UNI)
- LIBS:=
-endif
-
# this is used if there aren't any Makefile.config
ifndef CONFIG_INCLUDED
# sets network on by default if there aren't any config file
@@ -203,6 +190,10 @@ ifdef SUPRESS_LANG_ERRORS
LANG_ERRORS = >/dev/null 2>&1
endif
+ifdef OSX
+-include os/MacOSX/Makefile.setup
+endif
+
ifdef STATIC
ifndef WIN32
ifndef OSX
@@ -215,14 +206,6 @@ endif
endif
endif
-ifdef OSX
-ifdef RELEASE
-# all OSX releases needs to be static
-# end users don't tend to have the dynamic libs installed
-$(warning Compiling a dynamic release. It should be static unless you really know what you are doing!!!)
-endif
-endif
-
# Force SDL on UNIX platforms
ifndef WITH_SDL
ifdef UNIX