Makefile
changeset 446 20304ea8e94e
parent 421 0b9bdcdfe0c5
child 450 c5102d6f280e
--- a/Makefile	Wed Nov 17 08:52:47 2004 +0000
+++ b/Makefile	Wed Nov 17 09:07:29 2004 +0000
@@ -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 @@
 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 @@
 endif
 endif
 
+ifdef SUNOS
+CDEFS += -DSUNOS
+ifdef WITH_NETWORK
+LDFLAGS += -lnsl -lsocket
+endif
+endif
+
 # SDL config
 ifdef WITH_SDL
 CDEFS += -DWITH_SDL