From 2ed6f6611306e7bf1fe3bc98291b3160d9d6c3d3 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 14 Jan 2006 01:12:32 +0000 Subject: * s/i386/x86/ * s/qagame/game/ --- src/qcommon/q_platform.h | 10 ++++----- src/server/sv_game.c | 2 +- src/unix/Makefile | 53 +++++++++++++++++++----------------------------- 3 files changed, 27 insertions(+), 38 deletions(-) (limited to 'src') diff --git a/src/qcommon/q_platform.h b/src/qcommon/q_platform.h index 92e5be1a..2e0a6aca 100644 --- a/src/qcommon/q_platform.h +++ b/src/qcommon/q_platform.h @@ -111,7 +111,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ARCH_STRING "ppc" #define Q3_BIG_ENDIAN #elif defined __i386__ -#define ARCH_STRING "i386" +#define ARCH_STRING "x86" #define Q3_LITTLE_ENDIAN #endif @@ -128,7 +128,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define PATH_SEP '/' #if defined __i386__ -#define ARCH_STRING "i386" +#define ARCH_STRING "x86" #elif defined __x86_64__ #define ARCH_STRING "x86_64" #elif defined __powerpc64__ @@ -178,7 +178,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define PATH_SEP '/' #ifdef __i386__ -#define ARCH_STRING "i386" +#define ARCH_STRING "x86" #elif defined __axp__ #define ARCH_STRING "alpha" #endif @@ -205,7 +205,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define PATH_SEP '/' #ifdef __i386__ -#define ARCH_STRING "i386" +#define ARCH_STRING "x86" // Netbsd has alot of platforms #endif @@ -231,7 +231,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define PATH_SEP '/' #ifdef __i386__ -#define ARCH_STRING "i386" +#define ARCH_STRING "x86" #elif defined __sparc #define ARCH_STRING "sparc" #endif diff --git a/src/server/sv_game.c b/src/server/sv_game.c index b89ea920..a0ccc0f7 100644 --- a/src/server/sv_game.c +++ b/src/server/sv_game.c @@ -948,7 +948,7 @@ void SV_InitGameProgs( void ) { } // load the dll or bytecode - gvm = VM_Create( "qagame", SV_GameSystemCalls, Cvar_VariableValue( "vm_game" ) ); + gvm = VM_Create( "game", SV_GameSystemCalls, Cvar_VariableValue( "vm_game" ) ); if ( !gvm ) { Com_Error( ERR_FATAL, "VM_Create on game failed" ); } diff --git a/src/unix/Makefile b/src/unix/Makefile index f225cd44..37f7d8ae 100644 --- a/src/unix/Makefile +++ b/src/unix/Makefile @@ -16,9 +16,9 @@ COMPILE_PLATFORM=$(shell uname|sed -e s/_.*//|tr A-Z a-z) ifeq ($(COMPILE_PLATFORM),darwin) # Apple does some things a little differently... - COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/i386/) + COMPILE_ARCH=$(shell uname -p | sed -e s/i.86/x86/) else - COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/i386/) + COMPILE_ARCH=$(shell uname -m | sed -e s/i.86/x86/) endif BUILD_CLIENT = @@ -182,7 +182,7 @@ ifeq ($(PLATFORM),linux) # experimental x86_64 jit compiler! you need GNU as HAVE_VM_COMPILED = true else - ifeq ($(ARCH),i386) + ifeq ($(ARCH),x86) OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math \ -funroll-loops -falign-loops=2 -falign-jumps=2 \ -falign-functions=2 -fstrength-reduce @@ -228,7 +228,7 @@ ifeq ($(PLATFORM),linux) CLIENT_LDFLAGS += -lvorbisfile -lvorbis -logg endif - ifeq ($(ARCH),i386) + ifeq ($(ARCH),x86) # linux32 make ... BASE_CFLAGS += -m32 LDFLAGS+=-m32 @@ -277,7 +277,7 @@ ifeq ($(PLATFORM),darwin) endif endif - ifeq ($(ARCH),i386) + ifeq ($(ARCH),x86) # !!! FIXME: x86-specific flags here... endif @@ -389,8 +389,8 @@ ifeq ($(PLATFORM),freebsd) ifneq (,$(findstring alpha,$(shell uname -m))) ARCH=axp - else #default to i386 - ARCH=i386 + else #default to x86 + ARCH=x86 endif #alpha test @@ -406,7 +406,7 @@ ifeq ($(PLATFORM),freebsd) RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 -ffast-math -funroll-loops \ -fomit-frame-pointer -fexpensive-optimizations else - ifeq ($(ARCH),i386) + ifeq ($(ARCH),x86) CC=gcc RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3 -mtune=pentiumpro \ -march=pentium -fomit-frame-pointer -pipe -ffast-math \ @@ -436,7 +436,7 @@ else # ifeq freebsd ifeq ($(PLATFORM),netbsd) ifeq ($(shell uname -m),i386) - ARCH=i386 + ARCH=x86 endif CC=gcc @@ -449,7 +449,7 @@ ifeq ($(PLATFORM),netbsd) BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes DEBUG_CFLAGS=$(BASE_CFLAGS) -g - ifneq ($(ARCH),i386) + ifneq ($(ARCH),x86) BASE_CFLAGS += -DNO_VM_COMPILED endif @@ -493,12 +493,12 @@ ifeq ($(PLATFORM),SunOS) COPYDIR="/usr/local/share/games/tremulous" ifneq (,$(findstring i86pc,$(shell uname -m))) - ARCH=i386 + ARCH=x86 else #default to sparc ARCH=sparc endif - ifneq ($(ARCH),i386) + ifneq ($(ARCH),x86) ifneq ($(ARCH),sparc) $(error arch $(ARCH) is currently not supported) endif @@ -523,7 +523,7 @@ ifeq ($(PLATFORM),SunOS) -funroll-loops BASE_CFLAGS += -DNO_VM_COMPILED else - ifeq ($(ARCH),i386) + ifeq ($(ARCH),x86) OPTIMIZE = -O3 -march=i686 -ffast-math \ -falign-loops=2 -falign-jumps=2 -falign-functions=2 \ -funroll-loops -fstrength-reduce @@ -549,7 +549,7 @@ ifeq ($(PLATFORM),SunOS) CLIENT_LDFLAGS=-L/usr/openwin/$(LIB) -L/usr/X11/lib -lGLU -lX11 -lXext endif - ifeq ($(ARCH),i386) + ifeq ($(ARCH),x86) # Solarix x86 make ... BASE_CFLAGS += -m32 LDFLAGS+=-m32 @@ -593,7 +593,7 @@ endif ifneq ($(BUILD_GAME_SO),0) TARGETS += \ $(B)/base/cgame$(ARCH).$(SHLIBEXT) \ - $(B)/base/qagame$(ARCH).$(SHLIBEXT) \ + $(B)/base/game$(ARCH).$(SHLIBEXT) \ $(B)/base/ui$(ARCH).$(SHLIBEXT) endif @@ -601,7 +601,7 @@ ifneq ($(BUILD_GAME_QVM),0) ifneq ($(CROSS_COMPILING),1) TARGETS += \ $(B)/base/vm/cgame.qvm \ - $(B)/base/vm/qagame.qvm \ + $(B)/base/vm/game.qvm \ $(B)/base/vm/ui.qvm \ qvmdeps endif @@ -839,14 +839,6 @@ Q3OBJ = \ $(B)/client/tr_surface.o \ $(B)/client/tr_world.o \ -ifeq ($(ARCH),i386) - Q3OBJ += $(B)/client/vm_x86.o - Q3OBJ += \ - $(B)/client/snd_mixa.o \ - $(B)/client/matha.o \ - $(B)/client/ftola.o \ - $(B)/client/snapvectora.o -endif ifeq ($(ARCH),x86) Q3OBJ += $(B)/client/vm_x86.o Q3OBJ += \ @@ -855,6 +847,7 @@ ifeq ($(ARCH),x86) $(B)/client/ftola.o \ $(B)/client/snapvectora.o endif + ifeq ($(ARCH),x86_64) Q3OBJ += $(B)/client/vm_x86_64.o endif @@ -1183,7 +1176,7 @@ Q3DOBJ = \ $(B)/ded/null_input.o \ $(B)/ded/null_snddma.o -ifeq ($(ARCH),i386) +ifeq ($(ARCH),x86) Q3DOBJ += $(B)/ded/vm_x86.o $(B)/ded/ftola.o \ $(B)/ded/snapvectora.o $(B)/ded/matha.o endif @@ -1362,10 +1355,10 @@ GOBJ_ = \ GOBJ = $(GOBJ_) $(B)/base/game/g_syscalls.o GVMOBJ = $(GOBJ_:%.o=%.asm) $(B)/base/game/bg_lib.asm -$(B)/base/qagame$(ARCH).$(SHLIBEXT) : $(GOBJ) +$(B)/base/game$(ARCH).$(SHLIBEXT) : $(GOBJ) $(CC) $(SHLIBLDFLAGS) -o $@ $(GOBJ) -$(B)/base/vm/qagame.qvm: $(GVMOBJ) $(GDIR)/g_syscalls.asm +$(B)/base/vm/game.qvm: $(GVMOBJ) $(GDIR)/g_syscalls.asm $(Q3ASM) -o $@ $(GVMOBJ) $(GDIR)/g_syscalls.asm @@ -1441,13 +1434,12 @@ copyfiles: build_release -$(MKDIR) -p -m 0755 $(COPYDIR)/base $(INSTALL) -s -m 0755 $(BR)/base/cgame$(ARCH).$(SHLIBEXT) \ $(COPYDIR)/base/. - $(INSTALL) -s -m 0755 $(BR)/base/qagame$(ARCH).$(SHLIBEXT) \ + $(INSTALL) -s -m 0755 $(BR)/base/game$(ARCH).$(SHLIBEXT) \ $(COPYDIR)/base/. $(INSTALL) -s -m 0755 $(BR)/base/ui$(ARCH).$(SHLIBEXT) \ $(COPYDIR)/base/. clean:clean-debug clean-release - $(MAKE) -C setup clean $(MAKE) -C ../master clean clean2: @@ -1467,9 +1459,6 @@ distclean: clean $(MAKE) -C ../tools/asm clean uninstall $(MAKE) -C ../tools/lcc clean uninstall -installer: build_release - $(MAKE) VERSION=$(VERSION) -C setup - ############################################################################# # DEPENDENCIES ############################################################################# -- cgit