summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-03 11:12:39 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:14:44 +0000
commit593953c7deabb08cc77c22c08f5c8859bafbcb79 (patch)
tree8a22c17d66e749656a5665e1379d29ca715e219e /Makefile
parent3ffe4805cfebd93a60bf59b582303540b2ec0d80 (diff)
* Merge ioq3-r1233
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 63526571..df02c7d0 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,15 @@
COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]')
+COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/x86/)
+
ifeq ($(COMPILE_PLATFORM),sunos)
# Solaris uname and GNU uname differ
COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/x86/)
-else
- COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/x86/)
+endif
+ifeq ($(COMPILE_PLATFORM),darwin)
+ # Apple does some things a little differently...
+ COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/x86/)
endif
BUILD_CLIENT =
@@ -698,6 +702,7 @@ ifeq ($(PLATFORM),sunos)
BASE_CFLAGS += -m32
LDFLAGS += -m32
BASE_CFLAGS += -I/usr/X11/include/NVIDIA
+ CLIENT_LDFLAGS += -L/usr/X11/lib/NVIDIA -R/usr/X11/lib/NVIDIA
endif
endif
@@ -718,7 +723,7 @@ ifeq ($(PLATFORM),sunos)
BOTCFLAGS=-O0
- CLIENT_LDFLAGS=$(shell sdl-config --libs) -lGL
+ CLIENT_LDFLAGS +=$(shell sdl-config --libs) -lGL
else # ifeq sunos
@@ -1170,6 +1175,8 @@ Q3OBJ = \
$(B)/client/sdl_input.o \
$(B)/client/sdl_snd.o \
\
+ $(B)/client/con_passive.o \
+ $(B)/client/con_log.o \
$(B)/client/sys_main.o
ifeq ($(ARCH),x86)
@@ -1268,6 +1275,7 @@ Q3DOBJ = \
$(B)/ded/null_input.o \
$(B)/ded/null_snddma.o \
\
+ $(B)/ded/con_log.o \
$(B)/ded/sys_main.o
ifeq ($(ARCH),x86)