diff --git a/src/native/macosx/Makefile b/src/native/macosx/Makefile deleted file mode 100644 index e653a7c4..00000000 --- a/src/native/macosx/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# This makefile builds a 'fat' library that is _only_ compatible with 10.4 and later - -CC=gcc-4.0 -LINKER=gcc-4.0 -STRIP=strip -SDK_ROOT=/Developer/SDKs/MacOSX10.4u.sdk -ARCHS=-arch i386 -arch ppc -CFLAGS_LINK=-isysroot $(SDK_ROOT) $(ARCHS) -exported_symbols_list lwjgl.symbols -dynamiclib -Wall -SYMBOL_FILE=lwjgl.symbols -FRAMEWORKS=-framework Foundation -framework AppKit -framework JavaVM -framework Carbon -CFLAGS_O=-isysroot $(SDK_ROOT) $(ARCHS) -fPIC -O2 -D_MACOSX -Wall -c -I$(SDK_ROOT)/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers -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 - -$(LIBRARY): $(OBJECTS) $(SYMBOL_FILE) - $(LINKER) $(CFLAGS_LINK) -o $@ $(OBJECTS) $(FRAMEWORKS) - $(STRIP) -S -X $@ - -$(SYMBOL_FILE): $(OBJECTS) - nm -g $(OBJECTS) | grep "Java_" | cut -d ' ' -f3 | cut -c 1- > $(SYMBOL_FILE) - -.m.o: - $(CC) $(CFLAGS_O) $< -o $@ - -.c.o: - $(CC) $(CFLAGS_O) $< -o $@ - -clean: - rm -f $(OBJECTS) $(LIBRARY) diff --git a/src/native/macosx/Makefile.legacy b/src/native/macosx/Makefile.legacy deleted file mode 100644 index 725111c7..00000000 --- a/src/native/macosx/Makefile.legacy +++ /dev/null @@ -1,29 +0,0 @@ -# Use this makefile to build for Mac OS X 10.3 and earlier - -CC=gcc-3.3 -LINKER=gcc-3.3 -STRIP=strip -ARCHS= -SYMBOL_FILE=lwjgl.symbols -CFLAGS_LINK=-exported_symbols_list lwjgl.symbols -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 -SRC=$(wildcard *.m) $(wildcard *.c) $(wildcard ../common/*.c) $(wildcard ../generated/*.c) -OBJECTS=$(subst .m,.o, $(subst .c,.o,$(SRC))) -LIBRARY=liblwjgl-legacy.jnilib - -$(LIBRARY): $(OBJECTS) $(SYMBOL_FILE) - $(LINKER) $(CFLAGS_LINK) -o $@ $(OBJECTS) $(FRAMEWORKS) - $(STRIP) -S -X $@ - -$(SYMBOL_FILE): $(OBJECTS) - nm -g $(OBJECTS) | grep "Java_" | cut -d ' ' -f3 | cut -c 1- > $(SYMBOL_FILE) - -.m.o: - $(CC) $(CFLAGS_O) $< -o $@ - -.c.o: - $(CC) $(CFLAGS_O) $< -o $@ - -clean: - rm -f $(OBJECTS) $(LIBRARY) diff --git a/src/native/macosx/build-symbol-list b/src/native/macosx/build-symbol-list new file mode 100755 index 00000000..58c31e54 --- /dev/null +++ b/src/native/macosx/build-symbol-list @@ -0,0 +1,3 @@ +#!/bin/sh + +nm -g intel/*.o | grep "Java_" | cut -d ' ' -f3 | cut -c 1- diff --git a/src/native/macosx/build.xml b/src/native/macosx/build.xml new file mode 100644 index 00000000..5a88d536 --- /dev/null +++ b/src/native/macosx/build.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +