From b6228f1408a466eb684ba8afa36651a1ab02fa12 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sat, 29 Oct 2005 17:41:17 +0000 Subject: [PATCH] add HAVE_VM_COMPILED variable so one can override it in Makefile.local --- code/unix/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/code/unix/Makefile b/code/unix/Makefile index 1b3a21de..3eaa504c 100644 --- a/code/unix/Makefile +++ b/code/unix/Makefile @@ -123,24 +123,26 @@ 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 + endif + endif + endif + + ifneq ($(HAVE_VM_COMPILED),true) BASE_CFLAGS += -DNO_VM_COMPILED endif - endif - endif DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0