aboutsummaryrefslogtreecommitdiff
path: root/flow-native/common.mk
blob: 1db2e228a54ca90c5893e12f6956ce56aa316928 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Common settings for flow native build
# =====================================

# Name of the library to produce
#
NAME=flow3


# Library versions
#
# Note that MAJOR should always be set to zero
# 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 (without /lib)
#
PREFIX?=/usr/lib/jni


# 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=


# JNI include directory
#
JNI_INCLUDE?=$(JAVA_HOME)/include


# Include directories
#
INCLUDES=./include


# Objects that will be compiled from respective .c files
#
OBJECTS=flow_jni.o posix/flow.o