mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-11-19 10:31:26 +00:00
Fixing up the Mac build to be compatible with ppc and intel all in one go
This commit is contained in:
parent
d2bcf31a45
commit
e23679c134
@ -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
|
||||
|
12
src/vars_mac
12
src/vars_mac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user