aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/Makefile
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 17:43:56 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 17:43:56 +0000
commitdc02f5dc33fcbdbf8ab000b27dab807ca62b2942 (patch)
tree06e25a0afd8249050bc8a4cb1dd289c303265b66 /code/unix/Makefile
parentc434a6bac4189dc6195d83869003d71c55d4ba12 (diff)
downloadioquake3-aero-dc02f5dc33fcbdbf8ab000b27dab807ca62b2942.tar.gz
ioquake3-aero-dc02f5dc33fcbdbf8ab000b27dab807ca62b2942.zip
First patch from vapier for easier packaging:
it'd make it easier on people packaging up quake3 if we could set system paths for the baseq3 dir and if the makefile would respect things like CC/CXX from the build env git-svn-id: svn://svn.icculus.org/quake3/trunk@47 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/Makefile')
-rw-r--r--code/unix/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 399c65e..acee11a 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -54,8 +54,6 @@ BUILD_FREETYPE=0
##
#############################################################################
-BASEQ3_DIR=$(BDIR)/baseq3
-
BD=debug$(ARCH)$(GLIBC)
BR=release$(ARCH)$(GLIBC)
CDIR=$(MOUNT_DIR)/client
@@ -96,8 +94,8 @@ LIB=lib
ifeq ($(PLATFORM),linux)
GLIBC=-glibc
- CC=gcc
- CXX=g++
+ CC?=gcc
+ CXX?=g++
RPMARCH=$(ARCH)
ifeq ($(ARCH),alpha)
@@ -165,8 +163,9 @@ ifeq ($(PLATFORM),linux)
SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-shared $(LDFLAGS)
- ARFLAGS=ar rv
- RANLIB=ranlib
+ AR?=ar
+ ARFLAGS=rv
+ RANLIB?=ranlib
THREAD_LDFLAGS=-lpthread
LDFLAGS=-ldl -lm
@@ -344,6 +343,10 @@ endif #Linux
endif #FreeBSD
endif #IRIX
+ifdef DEFAULT_BASEDIR
+BASE_CFLAGS += -DDEFAULT_BASEDIR=\\\"$(DEFAULT_BASEDIR)\\\"
+endif
+
DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
DO_CXX=$(CXX) $(CFLAGS) -o $@ -c $<
DO_SMP_CC=$(CC) $(CFLAGS) -DSMP -o $@ -c $<