aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-19 20:43:35 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-19 20:43:35 +0000
commit3873056dc5e0a7c314fa42dd70c072027ccccec0 (patch)
treea660cfbf8f35600502dab5c85892b02013793834
parent275b73aa64da7c4b5083216d273877380ceebe73 (diff)
downloadioquake3-aero-3873056dc5e0a7c314fa42dd70c072027ccccec0.tar.gz
ioquake3-aero-3873056dc5e0a7c314fa42dd70c072027ccccec0.zip
* Removed the dependancy on perl for deriving the version number
* Moved `sdl-config --libs` from LDFLAGS to GLLDFLAGS to prevent needlessly linking against SDL when building the dedicated server * Moved assignment of DEBUG_CFLAGS until after BASE_CFLAGS has been constructed git-svn-id: svn://svn.icculus.org/quake3/trunk@96 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/unix/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 296253d..a8ca1eb 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -67,7 +67,7 @@ JPDIR=$(MOUNT_DIR)/jpeg-6
SPLNDIR=$(MOUNT_DIR)/splines
# extract version info
-VERSION=$(shell ./extract_ver.pl)
+VERSION=$(shell cat ../game/q_shared.h | grep Q3_VERSION | sed -e 's/.*Q3\ \(.*\)"/\1/')
RPM_RELEASE=1
# NOTE: used by dcp rcp targets, not referenced
@@ -128,13 +128,6 @@ ifeq ($(PLATFORM),linux)
GL_CFLAGS = -I/usr/X11R6/include
- # bk001204 - need -O for -Wall for uninitialized
- # bk001205 - took out -O to get assertions (NDEBUG)
- # bk001206 - MALLOC_CHECK in addition to ZONE_DEBUG
- # TTimo 03/30/2001 temporary took out -Werror for initial merge
- DEBUG_CFLAGS = $(BASE_CFLAGS) -g
- DEBUG_CFLAGS += -DNO_MOUSEGRAB
- DEBUG_CFLAGS += -O0
OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
ifeq ($(ARCH),x86_64)
OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fstrength-reduce -fno-strict-aliasing
@@ -150,6 +143,12 @@ ifeq ($(PLATFORM),linux)
endif
endif
+ # bk001204 - need -O for -Wall for uninitialized
+ # bk001205 - took out -O to get assertions (NDEBUG)
+ # bk001206 - MALLOC_CHECK in addition to ZONE_DEBUG
+ # TTimo 03/30/2001 temporary took out -Werror for initial merge
+ DEBUG_CFLAGS = $(BASE_CFLAGS) -g -DNO_MOUSEGRAB -O0
+
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
LIBEXT=a
@@ -174,7 +173,7 @@ ifeq ($(PLATFORM),linux)
endif
ifeq ($(strip $(USE_SDL)),true)
- LDFLAGS+=$(shell sdl-config --libs)
+ GLLDFLAGS+=$(shell sdl-config --libs)
endif
ifeq ($(ARCH),i386)