Mac OS X: Makefile now supports building an universal version of the lwjgl natives
This commit is contained in:
parent
4636c4b251
commit
2563ccb99d
|
@ -1,9 +1,14 @@
|
||||||
CC=gcc
|
CC=gcc
|
||||||
LINKER=gcc
|
LINKER=gcc
|
||||||
STRIP=strip
|
STRIP=strip
|
||||||
CFLAGS_LINK=-dynamiclib -Wall
|
# Replace SDK_ROOT and ARCHS with the following to enable universal binary build
|
||||||
|
#SDK_ROOT=/Developer/SDKs/MacOSX10.4u.sdk
|
||||||
|
#ARCHS=-arch i386 -arch ppc
|
||||||
|
SDK_ROOT=/
|
||||||
|
ARCHS=
|
||||||
|
CFLAGS_LINK=-Wl,-syslibroot,$(SDK_ROOT) $(ARCHS) -dynamiclib -Wall
|
||||||
FRAMEWORKS=-framework Foundation -framework AppKit -framework JavaVM -framework Carbon
|
FRAMEWORKS=-framework Foundation -framework AppKit -framework JavaVM -framework Carbon
|
||||||
CFLAGS_O=-fPIC -O2 -D_MACOSX -Wall -c -I${AL}/include -I../common -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
|
CFLAGS_O=-isysroot $(SDK_ROOT) $(ARCHS) -fPIC -O2 -D_MACOSX -Wall -c -I${AL}/include -I../common -I$(SDK_ROOT)/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
|
||||||
SRC=$(wildcard *.m) $(wildcard *.c) $(wildcard ../common/*.c) $(wildcard ../generated/*.c)
|
SRC=$(wildcard *.m) $(wildcard *.c) $(wildcard ../common/*.c) $(wildcard ../generated/*.c)
|
||||||
OBJECTS=$(subst .m,.o, $(subst .c,.o,$(SRC)))
|
OBJECTS=$(subst .m,.o, $(subst .c,.o,$(SRC)))
|
||||||
LIBRARY=liblwjgl.jnilib
|
LIBRARY=liblwjgl.jnilib
|
||||||
|
|
Loading…
Reference in New Issue