Fixing up the Mac build to be compatible with ppc and intel all in one go

This commit is contained in:
David Schmidt 2012-02-26 21:00:06 +00:00
parent d2bcf31a45
commit e23679c134
2 changed files with 9 additions and 6 deletions

View File

@ -23,6 +23,7 @@ clean:
- rm 8inst_c.h
- rm 16inst_c.h
- rm -r ../GSport.app
- rm -r ../GSportDmg
specials: 8inst_s 16inst_s 8size 16size 8inst_c 16inst_c size_c size_s
@ -32,7 +33,7 @@ specials_clean:
# Mac builds:
gsportmac: $(OBJECTS) compile_time.o
g++ $(CCOPTS) $(LDOPTS) -arch $(ARCH) $(OBJECTS) compile_time.o $(LDFLAGS) -o gsport $(EXTRA_LIBS) -prebind -framework Carbon -framework Quicktime
$(CC) $(CCOPTS) $(LDOPTS) $(OBJECTS) compile_time.o $(LDFLAGS) -o gsport $(EXTRA_LIBS)
mkdir -p ../GSport.app/Contents/Resources/English.lproj/main.nib
mkdir -p ../GSport.app/Contents/MacOS
mv gsport ../GSport.app/Contents/MacOS/GSport

View File

@ -1,11 +1,13 @@
CC = /usr/bin/g++-4.0
ARCH = -arch i386 -arch ppc
SDK = /Developer/SDKs/MacOSX10.4u.sdk
TARGET = gsportmac
OBJECTS = $(OBJECTS1) scc_macdriver.o macsnd_driver.o macdriver_generic.o macdriver_console.o
CCOPTS = -O2 -DMAC
CCOPTS = -O2 -DMAC $(ARCH) -isysroot $(SDK)
CPPOPTS = $(ARCH) -isysroot $(SDK)
SUFFIX =
NAME = gsportmac
ARCH = ppc
XOPTS = -Wall -fpascal-strings -mdynamic-no-pic -arch $(ARCH)
XOPTS = -Wall -fpascal-strings -mdynamic-no-pic
XLIBS =
LDOPTS = -I. -prebind -framework Carbon -framework Quicktime