From e2758d666d141f18cab1c2c66e5c24a683aa0f06 Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Mon, 3 Jan 2011 15:53:02 +0000 Subject: [PATCH] Make architecture on OSX be variable (ppc, i386, x86_64) --- src/Makefile | 2 +- src/vars_mac | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index ff82057..4dce437 100644 --- a/src/Makefile +++ b/src/Makefile @@ -28,7 +28,7 @@ specials_clean: # Mac builds: gsportmac: $(OBJECTS) compile_time.o - $(CC) $(CCOPTS) $(LDOPTS) -arch ppc $(OBJECTS) compile_time.o $(LDFLAGS) -o gsport $(EXTRA_LIBS) -prebind -framework Carbon -framework Quicktime + $(CC) $(CCOPTS) $(LDOPTS) -arch $(ARCH) $(OBJECTS) compile_time.o $(LDFLAGS) -o gsport $(EXTRA_LIBS) -prebind -framework Carbon -framework Quicktime mkdir -p ../GSport.app/Contents/Resources/English.lproj/main.nib mkdir -p ../GSport.app/Contents/MacOS mv gsport ../GSport.app/Contents/MacOS/GSport diff --git a/src/vars_mac b/src/vars_mac index 7883857..5747d02 100644 --- a/src/vars_mac +++ b/src/vars_mac @@ -4,7 +4,8 @@ OBJECTS = $(OBJECTS1) scc_macdriver.o macsnd_driver.o macdriver_generic.o macdri CCOPTS = -O2 -DMAC SUFFIX = NAME = gsportmac +ARCH = ppc -XOPTS = -Wall -fpascal-strings -mdynamic-no-pic -arch ppc +XOPTS = -Wall -fpascal-strings -mdynamic-no-pic -arch $(ARCH) XLIBS =