r96 - trunk/code/unix
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Sep 19 16:43:35 EDT 2005
Author: tma
Date: 2005-09-19 16:43:35 -0400 (Mon, 19 Sep 2005)
New Revision: 96
Modified:
trunk/code/unix/Makefile
Log:
* 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
Modified: trunk/code/unix/Makefile
===================================================================
--- trunk/code/unix/Makefile 2005-09-19 17:45:29 UTC (rev 95)
+++ trunk/code/unix/Makefile 2005-09-19 20:43:35 UTC (rev 96)
@@ -67,7 +67,7 @@
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 @@
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 @@
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 @@
endif
ifeq ($(strip $(USE_SDL)),true)
- LDFLAGS+=$(shell sdl-config --libs)
+ GLLDFLAGS+=$(shell sdl-config --libs)
endif
ifeq ($(ARCH),i386)
More information about the quake3-commits
mailing list