diff options
author | Jakob Odersky <jodersky@gmail.com> | 2014-03-29 13:02:50 +0100 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2014-03-29 13:02:50 +0100 |
commit | c0c3647bbf64af754d3cc9b6d167c8ca2b736f74 (patch) | |
tree | bce4c8f8a8328fd0705e9ab1b7fc9ea423b56d64 /flow-native/common.mk | |
parent | e1dbcd03d9c0504ef9d0e4172236481222ef70f2 (diff) | |
download | akka-serial-c0c3647bbf64af754d3cc9b6d167c8ca2b736f74.tar.gz akka-serial-c0c3647bbf64af754d3cc9b6d167c8ca2b736f74.tar.bz2 akka-serial-c0c3647bbf64af754d3cc9b6d167c8ca2b736f74.zip |
update native build
Diffstat (limited to 'flow-native/common.mk')
-rw-r--r-- | flow-native/common.mk | 51 |
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 + + |