genode/repos/ports/lib/mk/jnet.mk
Sebastian Sumpf 58fb5ed722 jdk: OpenJDK for Genode
OpenJDK version 9 for Genode, contains the interpreter version of the
HotSpot virtual machine.

fixes #2791
2018-05-30 13:36:07 +02:00

33 lines
1.1 KiB
Makefile

LIBS = libc
SHARED_LIB = yes
JDK_BASE = $(call select_from_ports,jdk)/src/app/jdk/jdk/src/java.base
JDK_GENERATED = $(call select_from_ports,jdk_generated)/src/app/jdk
SRC_C = bsd_close.c \
net_util.c \
net_util_md.c \
InetAddress.c \
Inet4Address.c \
Inet4AddressImpl.c \
Inet6Address.c \
InetAddressImplFactory.c \
PlainSocketImpl.c
INC_DIR += $(JDK_GENERATED)/include/java.base \
$(JDK_BASE)/share/native/include \
$(JDK_BASE)/share/native/libjava \
$(JDK_BASE)/share/native/libnet \
$(JDK_BASE)/share/native/libnio \
$(JDK_BASE)/share/native/libnio/ch \
$(JDK_BASE)/unix/native/include \
$(JDK_BASE)/unix/native/libjava \
$(JDK_BASE)/unix/native/libnet \
$(JDK_BASE)/unix/native/libnio
CC_C_OPT = -D_ALLBSD_SOURCE -include netinet/in.h
CC_OPT_net_util_md += -include sys/socket.h
vpath %.c $(JDK_BASE)/unix/native/libnet
vpath %.c $(JDK_BASE)/share/native/libnet
vpath %.c $(JDK_BASE)/macosx/native/libnet