aboutsummaryrefslogtreecommitdiff
path: root/flow-native/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'flow-native/common.mk')
-rw-r--r--flow-native/common.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/flow-native/common.mk b/flow-native/common.mk
new file mode 100644
index 0000000..be9f980
--- /dev/null
+++ b/flow-native/common.mk
@@ -0,0 +1,51 @@
+# Common settings for flow native build
+# =====================================
+
+# Name of the library to produce
+#
+NAME=flow3
+
+
+# Library versions
+#
+# Note that MAJOR should always be set tozero
+# since java does not allow loading semantically
+# versioned libraries, include the major version
+# in the name instead.
+#
+MAJOR=0# always zero
+MINOR=0# backwards-compatible changes
+MICRO=0# bugfixes
+
+
+# Directory where the library will be installed
+#
+PREFIX?=/usr
+
+
+# Compiler and linker settings
+#
+# Set CROSS_COMPILE to a gcc triplet
+# when cross-compiling
+#
+CC=$(CROSS_COMPILE)gcc
+LD=$(CROSS_COMPILE)ld
+CFLAGS= -O2 -fPIC -Wall
+LDFLAGS=
+
+
+# JDK base directory
+#
+JAVA_HOME?=/usr/lib/jvm/java-7-oracle
+
+
+# Include directories
+#
+INCLUDES=./include/ $(JAVA_HOME)/include/ $(JAVA_HOME)/include/linux/
+
+
+# Objects that will be compiled from respective .c files
+#
+OBJECTS=flow_jni.o posix/flow.o
+
+