diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-29 17:41:17 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-29 17:41:17 +0000 |
commit | 106484b1a769ae9382323b7db7293a12cacf1461 (patch) | |
tree | 20674701f3c5cdd3d476c7ce25eda8348675eb6d /code/unix | |
parent | 8ceb35ae193c50bdf11820eb28f5f86b40c2a89c (diff) | |
download | ioquake3-aero-106484b1a769ae9382323b7db7293a12cacf1461.tar.gz ioquake3-aero-106484b1a769ae9382323b7db7293a12cacf1461.zip |
add HAVE_VM_COMPILED variable so one can override it in Makefile.local
git-svn-id: svn://svn.icculus.org/quake3/trunk@197 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r-- | code/unix/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile index 1b3a21d..3eaa504 100644 --- a/code/unix/Makefile +++ b/code/unix/Makefile @@ -123,25 +123,27 @@ ifeq ($(PLATFORM),linux) OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 \ -falign-jumps=2 -falign-functions=2 -fstrength-reduce \ -fno-strict-aliasing - # comment out below line to enable the # experimental x86_64 jit compiler! you need as - BASE_CFLAGS += -DNO_VM_COMPILED + #HAVE_VM_COMPILED = true else ifeq ($(ARCH),i386) OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math \ -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ -fno-strict-aliasing -fstrength-reduce + HAVE_VM_COMPILED=true else ifeq ($(ARCH),ppc) - ifeq ($(VM_PPC),) - BASE_CFLAGS += -DNO_VM_COMPILED + ifneq ($(VM_PPC),) + HAVE_VM_COMPILED=true endif - else - BASE_CFLAGS += -DNO_VM_COMPILED endif endif endif + ifneq ($(HAVE_VM_COMPILED),true) + BASE_CFLAGS += -DNO_VM_COMPILED + endif + DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0 RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE) |