From 50eb77ed1ac46842d2fd4ffd3ca5b460c89d6dbf Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 19 Sep 2005 20:43:35 +0000 Subject: [PATCH] * 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 --- code/unix/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/code/unix/Makefile b/code/unix/Makefile index 296253dc..a8ca1eb7 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)