--- Makefile.orig 2004-03-11 13:22:44.000000000 +0100 +++ Makefile 2004-03-11 13:25:04.000000000 +0100 @@ -20,9 +20,14 @@ ARCH=axp RPMARCH=alpha else +ifneq (,$(findstring ppc,$(shell uname -m))) +ARCH=ppc +RPMARCH=ppc +else ARCH=i386 RPMARCH=i386 endif +endif NOARCH=noarch MOUNT_DIR=.. @@ -54,8 +59,8 @@ RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops \ -fomit-frame-pointer -fexpensive-optimizations else -RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mcpu=pentiumpro -O6 -ffast-math -funroll-loops \ - -fomit-frame-pointer -fexpensive-optimizations +RELEASE_CFLAGS=-ffast-math -funroll-loops $(BASE_CFLAGS) +# -fomit-frame-pointer -fexpensive-optimizations endif DEBUG_CFLAGS=$(BASE_CFLAGS) -g @@ -64,9 +69,9 @@ XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga XCFLAGS= -GLLDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib -L$(MESA_DIR)/lib -lX11 -lXext -lm -ljpeg -GLXLDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib -L$(MESA_DIR)/lib -lX11 -lXext -lXxf86dga -lXxf86vm -lm -ljpeg -GLCFLAGS=-I$(MESA_DIR)/include -I/usr/include/glide +GLLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lm -ljpeg +GLXLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm -lm -ljpeg +#GLCFLAGS=-I$(MESA_DIR)/include -I/usr/include/glide SHLIBEXT=so @@ -100,6 +105,8 @@ $(BUILDDIR)/ref_gl.$(SHLIBEXT) endif +RELEASE_CFLAGS += $(OPTCFLAGS) + build_debug: @-mkdir $(BUILD_DEBUG_DIR) \ $(BUILD_DEBUG_DIR)/client \ --- sys_linux.c.orig 2004-03-11 13:22:48.000000000 +0100 +++ sys_linux.c 2004-03-11 13:22:53.000000000 +0100 @@ -223,6 +223,8 @@ const char *gamename = "gamei386.so"; #elif defined __alpha__ const char *gamename = "gameaxp.so"; +#elif defined __powerpc__ + const char *gamename = "gameppc.so"; #else #error Unknown arch #endif