Makefile
changeset 2500 e2b13f720a94
parent 2497 1c8460570c0d
child 2503 4dbacca764c4
--- a/Makefile	Fri Oct 07 15:53:33 2005 +0000
+++ b/Makefile	Fri Oct 07 16:48:53 2005 +0000
@@ -404,6 +404,11 @@
 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 @@
 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 @@
 
 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)