aboutsummaryrefslogtreecommitdiff
path: root/flow-native/Makefile.mac
diff options
context:
space:
mode:
Diffstat (limited to 'flow-native/Makefile.mac')
-rw-r--r--flow-native/Makefile.mac12
1 files changed, 12 insertions, 0 deletions
diff --git a/flow-native/Makefile.mac b/flow-native/Makefile.mac
new file mode 100644
index 0000000..03418e7
--- /dev/null
+++ b/flow-native/Makefile.mac
@@ -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