Changeset - r2500:4297cb3c6bc0
[Not reviewed]
master
0 2 0
bjarni - 19 years ago 2005-10-07 16:48:53
bjarni@openttd.org
(svn r3026) -Fix: [OSX] fixed bug that prevented dedicated servers from compiling (introduced in r3022)
2 files changed with 10 insertions and 1 deletions:
0 comments (0 inline, 0 general)
Makefile
Show inline comments
 
@@ -401,12 +401,17 @@ ifdef SUNOS
 
CDEFS += -DSUNOS
 
ifdef WITH_NETWORK
 
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
 
CFLAGS += $(shell $(SDL-CONFIG) --cflags)
 
ifdef STATIC
 
LIBS += $(shell $(SDL-CONFIG) --static-libs)
 
@@ -495,15 +500,17 @@ ifndef MIDI
 
MIDI:=$(OSXAPP)/Contents/MacOS/track_starter
 
endif
 
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)\"
 
ifdef MIDI_ARG
 
CDEFS += -DMIDI_ARG=\"$(MIDI_ARG)\"
 
endif
 
@@ -709,14 +716,16 @@ else
 
C_SOURCES += unix.c
 
C_SOURCES += music/extmidi.c
 
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)
 

	
 
ifdef BEOS
 
CXX_SOURCES += music/bemidi.cpp
 
endif
driver.c
Show inline comments
 
@@ -49,13 +49,13 @@ static const DriverDesc _music_driver_de
 
#ifdef WIN32_ENABLE_DIRECTMUSIC_SUPPORT
 
	M("dmusic",  "DirectMusic MIDI Driver", &_dmusic_midi_driver),
 
#endif
 
#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
 
#if !defined(__MORPHOS__) && !defined(__AMIGA__)
 
	M("extmidi", "External MIDI Driver",    &_extmidi_music_driver),
 
#endif
0 comments (0 inline, 0 general)