aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/Makefile
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-09 13:07:54 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-09 13:07:54 +0000
commitdb6a69684ca2d830331439336828e64830d10649 (patch)
tree79182a5a50ab630b6fb2b50019b28afa5983ec57 /code/unix/Makefile
parent5959d87188bd78fab466470228a657fc3b2eab9f (diff)
downloadioquake3-aero-db6a69684ca2d830331439336828e64830d10649.tar.gz
ioquake3-aero-db6a69684ca2d830331439336828e64830d10649.zip
- get rid of vm_none
- if VM_PPC is set compiled vm support is enabled on ppc (default off atm) git-svn-id: svn://svn.icculus.org/quake3/trunk@152 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/Makefile')
-rw-r--r--code/unix/Makefile31
1 files changed, 12 insertions, 19 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 7834fec..0959026 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -85,6 +85,7 @@ VERSION=$(shell grep Q3_VERSION ../game/q_shared.h | \
## Defaults
DLL_ONLY=false
USE_SDL=true
+VM_PPC=
# bk010215 - TODO - add all defaults / kill Ryan
@@ -107,10 +108,6 @@ ifeq ($(PLATFORM),linux)
else
ifeq ($(ARCH),s390x)
LIB=lib64
- else
- ifeq ($(ARCH),ppc)
- VM_PPC=vm_none
- endif
endif
endif
endif
@@ -132,21 +129,23 @@ ifeq ($(PLATFORM),linux)
OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer \
-fno-strict-aliasing
+ BASE_CFLAGS += -DHAVE_VM_NATIVE
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
- BASE_CFLAGS += -DHAVE_VM_NATIVE
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
- BASE_CFLAGS += -DHAVE_VM_NATIVE -DHAVE_VM_COMPILED
+ BASE_CFLAGS += -DHAVE_VM_COMPILED
else
ifeq ($(ARCH),ppc)
- BASE_CFLAGS += -DHAVE_VM_NATIVE
+ ifneq ($(VM_PPC),)
+ BASE_CFLAGS += -DHAVE_VM_COMPILED
+ endif
endif
endif
endif
@@ -618,12 +617,8 @@ ifeq ($(ARCH),x86)
Q3OBJ += $(B)/client/vm_x86.o
endif
-ifeq ($(ARCH),x86_64)
- Q3OBJ += $(B)/client/vm_none.o
-endif
-
ifeq ($(ARCH),ppc)
- ifeq ($(DLL_ONLY),false)
+ ifneq ($(VM_PPC),)
Q3OBJ += $(B)/client/$(VM_PPC).o
endif
endif
@@ -905,8 +900,9 @@ $(B)/client/win_wndproc.o : $(W32DIR)/win_wndproc.c; $(DO_CC) $(DX_CFLAGS)
$(B)/client/win_resource.o : $(W32DIR)/winquake.rc; $(DO_WINDRES)
$(B)/client/vm_x86.o : $(CMDIR)/vm_x86.c; $(DO_CC)
-$(B)/client/vm_none.o : $(CMDIR)/vm_none.c; $(DO_CC)
+ifneq ($(VM_PPC),)
$(B)/client/$(VM_PPC).o : $(CMDIR)/$(VM_PPC).c; $(DO_CC)
+endif
$(B)/client/unzip.o : $(CMDIR)/unzip.c; $(DO_CC)
$(B)/client/vm.o : $(CMDIR)/vm.c; $(DO_CC)
@@ -991,12 +987,8 @@ ifeq ($(ARCH),i386)
Q3DOBJ += $(B)/ded/vm_x86.o $(B)/ded/ftola.o $(B)/ded/snapvectora.o
endif
-ifeq ($(ARCH),x86_64)
- Q3DOBJ += $(B)/ded/vm_none.o
-endif
-
ifeq ($(ARCH),ppc)
- ifeq ($(DLL_ONLY),false)
+ ifneq ($(VM_PPC),)
Q3DOBJ += $(B)/ded/$(VM_PPC).o
endif
endif
@@ -1075,8 +1067,9 @@ $(B)/ded/ftola.o : $(UDIR)/ftola.s; $(DO_AS)
$(B)/ded/snapvectora.o : $(UDIR)/snapvectora.s; $(DO_AS)
$(B)/ded/vm_x86.o : $(CMDIR)/vm_x86.c; $(DO_DED_CC)
-$(B)/ded/vm_none.o : $(CMDIR)/vm_none.c; $(DO_DED_CC)
+ifneq ($(VM_PPC),)
$(B)/ded/$(VM_PPC).o : $(CMDIR)/$(VM_PPC).c; $(DO_DED_CC)
+endif