summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-17 09:07:29 +0000
committertron <tron@openttd.org>2004-11-17 09:07:29 +0000
commit87adce3ca0bfd9018161a97c9e4f36eaf74d9b10 (patch)
tree5a3378a748ffa56073828573db89ccf305848977 /Makefile
parent13f0b6c0cf754184cfef8645e709f10240da5f98 (diff)
downloadopenttd-87adce3ca0bfd9018161a97c9e4f36eaf74d9b10.tar.xz
(svn r655) Add the necessary bits to make building on SunOS/Solaris work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 55632f699..73a266d90 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@
# OSX: building on Mac OS X
# MORPHOS: building on MorphOS
# BEOS: building on BeOS
+# SUNOS: building on SunOS (Solaris)
#
# Summary of library choice defines
# WITH_ZLIB: savegames using zlib
@@ -242,7 +243,7 @@ REV_NUMBER := $(shell if test -d .svn; then svnversion . | tr -dc 0-9; fi)
ifdef RELEASE
REV:=$(RELEASE)
else
-REV := $(shell if test -d .svn; then echo -n r; svnversion .; fi)
+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
@@ -341,6 +342,13 @@ ifdef WITH_NETWORK
endif
endif
+ifdef SUNOS
+CDEFS += -DSUNOS
+ifdef WITH_NETWORK
+LDFLAGS += -lnsl -lsocket
+endif
+endif
+
# SDL config
ifdef WITH_SDL
CDEFS += -DWITH_SDL