2986b967c1d598e9f2094999dff7bd3da337e627
[nativez] / config.make.in
1
2 TARGET ?= linux-amd64
3
4 JAVA_HOME ?= /usr/local/jdk-11.0.2
5
6 JAVAC ?= javac
7 JAR ?= jar
8 JMOD ?= jmod
9
10 JAVACFLAGS += -source 11
11
12 # Linux options
13 linux-amd64_CPPFLAGS = \
14         -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
15 linux-amd64_CFLAGS = -fPIC -Os -Wall
16 linux-amd64_CC = cc
17 linux-amd64_LD = ld
18
19 linux-amd64_SO = .so
20 linux-amd64_LIB = lib
21
22 # Windows options
23 windows-amd64_CPPFLAGS = \
24         -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \
25         -DHAVE_ALIGNED_MALLOC \
26         -DWIN32
27 windows-amd64_CFLAGS = -Os -Wall
28 windows-amd64_CC = x86_64-w64-mingw32-gcc
29 windows-amd64_LD = x86_64-w64-mingw32-ld
30 windows-amd64_LDFLAGS = -Wl,--subsystem,windows
31
32 windows-amd64_SO = .dll
33 windows-amd64_LIB =