aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-27 19:46:01 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-27 19:46:01 +0000
commitf517f31a6f8c1e3adcd41d020575c27f217ee8e0 (patch)
tree0de4db6ccdc73164ed4d1a9d66d7ccb42f4fa036 /code/unix
parentb0a5b18fc58cf4b9b0ad2eb72f0678b344a2db25 (diff)
downloadioquake3-aero-f517f31a6f8c1e3adcd41d020575c27f217ee8e0.tar.gz
ioquake3-aero-f517f31a6f8c1e3adcd41d020575c27f217ee8e0.zip
* NetBSD support patch from optical (alex@rigbo.se)
git-svn-id: svn://svn.icculus.org/quake3/trunk@448 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 2247bcd..e47a948 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -473,6 +473,47 @@ ifeq ($(PLATFORM),freebsd)
else # ifeq freebsd
#############################################################################
+# SETUP AND BUILD -- NETBSD
+#############################################################################
+
+ifeq ($(PLATFORM),netbsd)
+
+ ifeq ($(shell uname -m),i386)
+ ARCH=i386
+ endif
+
+ CC=gcc
+ LDFLAGS=-lm
+ SHLIBEXT=so
+ SHLIBCFLAGS=-fPIC
+ SHLIBLDFLAGS=-shared $(LDFLAGS)
+ THREAD_LDFLAGS=-lpthread
+
+ BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
+ DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+
+ ifneq ($(ARCH),i386)
+ BASE_CFLAGS += -DNO_VM_COMPILED
+ endif
+
+ ifeq ($(ARCH),i386)
+ TARGETS=\
+ $(B)/baseq3/cgame$(ARCH).$(SHLIBEXT) \
+ $(B)/baseq3/qagame$(ARCH).$(SHLIBEXT) \
+ $(B)/baseq3/ui$(ARCH).$(SHLIBEXT) \
+ $(B)/missionpack/cgame$(ARCH).$(SHLIBEXT) \
+ $(B)/missionpack/qagame$(ARCH).$(SHLIBEXT) \
+ $(B)/missionpack/ui$(ARCH).$(SHLIBEXT) \
+ $(B)/$(PLATFORM)q3ded
+ else
+ TARGETS=\
+ $(B)/$(PLATFORM)q3ded
+
+ endif
+
+else # ifeq netbsd
+
+#############################################################################
# SETUP AND BUILD -- IRIX
#############################################################################
@@ -630,6 +671,7 @@ endif #Linux
endif #darwin
endif #mingw32
endif #FreeBSD
+endif #NetBSD
endif #IRIX
endif #SunOS