summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-10-07 16:48:53 +0000
committerbjarni <bjarni@openttd.org>2005-10-07 16:48:53 +0000
commit354320527a020f767395de4c76db4effd0747e8f (patch)
tree4084349064dbd2bca13da4647046f76c89dfc0fb
parent6423de929059d7a242aeba9207ab3cf66cfd14e7 (diff)
downloadopenttd-354320527a020f767395de4c76db4effd0747e8f.tar.xz
(svn r3026) -Fix: [OSX] fixed bug that prevented dedicated servers from compiling (introduced in r3022)
-rw-r--r--Makefile9
-rw-r--r--driver.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23ea10094..77ad38d29 100644
--- a/Makefile
+++ b/Makefile
@@ -404,6 +404,11 @@ LDFLAGS += -lnsl -lsocket
endif
endif
+# tell the source that we are building a dedicated server
+ifdef DEDICATED
+CDEFS += -DDEDICATED
+endif
+
# SDL config
ifdef WITH_SDL
CDEFS += -DWITH_SDL
@@ -498,9 +503,11 @@ ifndef SECOND_DATA_PATH
SECOND_DATA_PATH:="$(OSXAPP)/Contents/Data/"
endif
ifndef CUSTOM_LANG_DIR
+ifndef DEDICATED
CUSTOM_LANG_DIR:="$(OSXAPP)/Contents/Lang/"
endif
endif
+endif
ifdef MIDI
CDEFS += -DEXTERNAL_PLAYER=\"$(MIDI)\"
@@ -712,8 +719,10 @@ endif
ifdef OSX
OBJC_SOURCES += os/macosx/macos.m
+ifndef DEDICATED
C_SOURCES += music/qtmidi.c
endif
+endif
OBJS = $(C_SOURCES:%.c=%.o) $(CXX_SOURCES:%.cpp=%.o) $(OBJC_SOURCES:%.m=%.o)
diff --git a/driver.c b/driver.c
index 7f00a32a6..e6c6999a9 100644
--- a/driver.c
+++ b/driver.c
@@ -52,7 +52,7 @@ static const DriverDesc _music_driver_descs[] = {
#ifdef WIN32
M("win32", "Win32 MIDI Driver", &_win32_music_driver),
#endif
-#ifdef __APPLE__
+#if defined(__APPLE__) && !defined(DEDICATED)
M("qt", "QuickTime MIDI Driver", &_qtime_music_driver),
#endif
#ifdef UNIX