From 2563ccb99de929aaf4114c95a73f508c068165ed Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 4 Oct 2005 07:43:50 +0000 Subject: [PATCH] Mac OS X: Makefile now supports building an universal version of the lwjgl natives --- src/native/macosx/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/native/macosx/Makefile b/src/native/macosx/Makefile index 7c686f97..f6c65dbf 100644 --- a/src/native/macosx/Makefile +++ b/src/native/macosx/Makefile @@ -1,9 +1,14 @@ CC=gcc LINKER=gcc 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 -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) OBJECTS=$(subst .m,.o, $(subst .c,.o,$(SRC))) LIBRARY=liblwjgl.jnilib