@@ -205,53 +205,48 @@ endif
endif
# Force SDL on UNIX platforms
ifndef WITH_SDL
ifdef UNIX
ifndef DEDICATED
$(error You need to have SDL installed in order to run OpenTTD on UNIX. Use DEDICATED if you want to compile a CLI based server)
# remove the dependancy for sdl if DEDICALTED is used
ifdef DEDICATED
WITH_SDL:=
##############################################################################
#
# Compiler configuration
CC=gcc
CXX=g++
ifdef MORPHOS
CC += -noixemul -pipe
CXX += -noixemul -pipe
# Executable file extension
ifdef WIN32
EXE=.exe
else
EXE=
# Set output executable names
TTD=openttd$(EXE)
ENDIAN_CHECK=endian_check$(EXE)
STRGEN=strgen/strgen$(EXE)
OSXAPP="OpenTTD.app"
# What revision are we compiling, if we have an idea?
REV_NUMBER := $(shell if test -d .svn; then svnversion . | tr -dc 0-9; fi)
ifdef RELEASE
REV:=$(RELEASE)
REV := $(shell if test -d .svn; then svnversion . | awk '{ print "r"$$0 }'; fi)
tmp_test:=$(shell echo "$(REV)" | grep "M" )
ifdef tmp_test
REV_NUMBER:=1
@@ -348,48 +343,52 @@ ifdef MINGW
BASECFLAGS += -mno-cygwin
LDFLAGS += -mno-cygwin
CFLAGS += $(BASECFLAGS)
CDEFS += -DUNIX
ifdef BEOS
CDEFS += -DBEOS
LDFLAGS += -lmidi -lbe
ifdef WITH_NETWORK
ifdef BEOS_NET_SERVER
CDEFS += -DBEOS_NET_SERVER
# Zeta needs a few more libraries than R5
LDFLAGS += -lbind -lsocket
CFLAGS += -noixemul -pipe
ifdef SUNOS
CDEFS += -DSUNOS
LDFLAGS += -lnsl -lsocket
# SDL config
ifdef WITH_SDL
CDEFS += -DWITH_SDL
CFLAGS += `$(SDL-CONFIG) --cflags`
ifdef STATIC
LIBS += `$(SDL-CONFIG) --static-libs`
LIBS += `$(SDL-CONFIG) --libs`
# zlib config
ifdef WITH_ZLIB
CDEFS += -DWITH_ZLIB
ifdef OSX
Status change: