From 5064c8128fac7d70cc87154edbb2b7773f978e29 Mon Sep 17 00:00:00 2001 From: Joshua Portway Date: Tue, 15 Apr 2014 01:17:40 +0100 Subject: added a Mac makefile. It's crude, but it works. --- flow-native/mac/Makefile | 12 ++++++++++++ flow-native/mac/Readme | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 flow-native/mac/Makefile create mode 100644 flow-native/mac/Readme diff --git a/flow-native/mac/Makefile b/flow-native/mac/Makefile new file mode 100644 index 0000000..0f73b68 --- /dev/null +++ b/flow-native/mac/Makefile @@ -0,0 +1,12 @@ +# Include common settings +include ../common.mk + +JAVALIB=lib$(NAME)$(MAJOR).dylib + +all: $(JAVALIB) + +$(JAVALIB): + gcc -dynamiclib -I$(JAVA_HOME)/include/darwin -I$(JAVA_HOME)/include -I../include ../flow_jni.c ../posix/flow.c -o $(JAVALIB) -m64 + +clean: + -del $(JAVALIB) \ No newline at end of file diff --git a/flow-native/mac/Readme b/flow-native/mac/Readme new file mode 100644 index 0000000..6df640b --- /dev/null +++ b/flow-native/mac/Readme @@ -0,0 +1,2 @@ +You should be able to build on OSX by just running make in this directory. +The libFlow3.dylib file produced will have to be copied manually into the classpath of your project \ No newline at end of file -- cgit v1.2.3