< prev index next >

make/lib/Lib-java.base.gmk

Print this page




  36 ################################################################################
  37 # Create all the core libraries
  38 
  39 include CoreLibraries.gmk
  40 
  41 ################################################################################
  42 # Create the network library
  43 
  44 LIBNET_SRC_DIRS := $(call FindSrcDirsForLib, java.base, net)
  45 
  46 $(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
  47     NAME := net, \
  48     SRC := $(LIBNET_SRC_DIRS), \
  49     OPTIMIZATION := LOW, \
  50     CFLAGS := $(CFLAGS_JDKLIB) -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
  51         $(LIBJAVA_HEADER_FLAGS) $(addprefix -I, $(LIBNET_SRC_DIRS)), \
  52     DISABLED_WARNINGS_gcc := format-nonliteral, \
  53     DISABLED_WARNINGS_clang := parentheses-equality constant-logical-operand, \
  54     DISABLED_WARNINGS_microsoft := 4244 4047 4133 4996, \
  55     DISABLED_WARNINGS_solstudio := E_ARG_INCOMPATIBLE_WITH_ARG_L, \
  56     MAPFILE := $(TOPDIR)/make/mapfiles/libnet/mapfile-vers, \
  57     LDFLAGS := $(LDFLAGS_JDKLIB) \
  58         $(call SET_SHARED_LIBRARY_ORIGIN), \
  59     LDFLAGS_windows := -delayload:secur32.dll -delayload:iphlpapi.dll, \
  60     LIBS_unix := -ljvm -ljava, \
  61     LIBS_linux := $(LIBDL) -lpthread, \
  62     LIBS_solaris := -lnsl -lsocket $(LIBDL), \
  63     LIBS_aix := $(LIBDL),\
  64     LIBS_windows := ws2_32.lib jvm.lib secur32.lib iphlpapi.lib winhttp.lib \
  65         delayimp.lib $(WIN_JAVA_LIB) advapi32.lib, \
  66     LIBS_macosx := -framework CoreFoundation -framework CoreServices, \
  67 ))
  68 
  69 $(BUILD_LIBNET): $(BUILD_LIBJAVA)
  70 
  71 TARGETS += $(BUILD_LIBNET)
  72 
  73 ################################################################################
  74 # Create the nio library
  75 
  76 BUILD_LIBNIO_SRC := \
  77     $(TOPDIR)/src/java.base/share/native/libnio \
  78     $(TOPDIR)/src/java.base/share/native/libnio/ch \
  79     $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio \
  80     $(sort $(wildcard \
  81       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \
  82       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/fs \
  83       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libnio/ch \
  84       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libnio/fs)) \
  85     #
  86 
  87 BUILD_LIBNIO_CFLAGS := \
  88     $(addprefix -I, $(BUILD_LIBNIO_SRC)) \
  89     -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
  90     $(LIBJAVA_HEADER_FLAGS) \
  91     $(addprefix -I, $(BUILD_LIBNET_SRC))
  92 
  93 ifeq ($(OPENJDK_TARGET_OS), linux)
  94   BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  95 endif
  96 
  97 ifeq ($(OPENJDK_TARGET_OS), macosx)
  98   BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  99 endif
 100 
 101 ifeq ($(OPENJDK_TARGET_OS), solaris)
 102   BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
 103 endif
 104 
 105 ifeq ($(OPENJDK_TARGET_OS), aix)
 106   BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
 107 endif
 108 
 109 $(eval $(call SetupJdkLibrary, BUILD_LIBNIO, \
 110     NAME := nio, \
 111     SRC := $(BUILD_LIBNIO_SRC), \
 112     EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \
 113     OPTIMIZATION := HIGH, \
 114     WARNINGS_AS_ERRORS_xlc := false, \
 115     CFLAGS := $(CFLAGS_JDKLIB) \
 116         $(BUILD_LIBNIO_CFLAGS), \
 117     MAPFILE := $(BUILD_LIBNIO_MAPFILE), \
 118     LDFLAGS := $(LDFLAGS_JDKLIB) \
 119         $(call SET_SHARED_LIBRARY_ORIGIN), \
 120     LIBS_unix := -ljava -lnet, \
 121     LIBS_linux := -lpthread $(LIBDL), \
 122     LIBS_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \
 123         -lsendfile, \
 124     LIBS_aix := $(LIBDL), \
 125     LIBS_macosx := \
 126         -framework CoreFoundation -framework CoreServices, \
 127     LIBS_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
 128         $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \
 129         advapi32.lib, \
 130 ))
 131 
 132 TARGETS += $(BUILD_LIBNIO)
 133 
 134 $(BUILD_LIBNIO): $(BUILD_LIBNET)
 135 
 136 ################################################################################
 137 # Create the macosx security library




  36 ################################################################################
  37 # Create all the core libraries
  38 
  39 include CoreLibraries.gmk
  40 
  41 ################################################################################
  42 # Create the network library
  43 
  44 LIBNET_SRC_DIRS := $(call FindSrcDirsForLib, java.base, net)
  45 
  46 $(eval $(call SetupJdkLibrary, BUILD_LIBNET, \
  47     NAME := net, \
  48     SRC := $(LIBNET_SRC_DIRS), \
  49     OPTIMIZATION := LOW, \
  50     CFLAGS := $(CFLAGS_JDKLIB) -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
  51         $(LIBJAVA_HEADER_FLAGS) $(addprefix -I, $(LIBNET_SRC_DIRS)), \
  52     DISABLED_WARNINGS_gcc := format-nonliteral, \
  53     DISABLED_WARNINGS_clang := parentheses-equality constant-logical-operand, \
  54     DISABLED_WARNINGS_microsoft := 4244 4047 4133 4996, \
  55     DISABLED_WARNINGS_solstudio := E_ARG_INCOMPATIBLE_WITH_ARG_L, \

  56     LDFLAGS := $(LDFLAGS_JDKLIB) \
  57         $(call SET_SHARED_LIBRARY_ORIGIN), \
  58     LDFLAGS_windows := -delayload:secur32.dll -delayload:iphlpapi.dll, \
  59     LIBS_unix := -ljvm -ljava, \
  60     LIBS_linux := $(LIBDL) -lpthread, \
  61     LIBS_solaris := -lnsl -lsocket $(LIBDL), \
  62     LIBS_aix := $(LIBDL),\
  63     LIBS_windows := ws2_32.lib jvm.lib secur32.lib iphlpapi.lib winhttp.lib \
  64         delayimp.lib $(WIN_JAVA_LIB) advapi32.lib, \
  65     LIBS_macosx := -framework CoreFoundation -framework CoreServices, \
  66 ))
  67 
  68 $(BUILD_LIBNET): $(BUILD_LIBJAVA)
  69 
  70 TARGETS += $(BUILD_LIBNET)
  71 
  72 ################################################################################
  73 # Create the nio library
  74 
  75 BUILD_LIBNIO_SRC := \
  76     $(TOPDIR)/src/java.base/share/native/libnio \
  77     $(TOPDIR)/src/java.base/share/native/libnio/ch \
  78     $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio \
  79     $(sort $(wildcard \
  80       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \
  81       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/fs \
  82       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libnio/ch \
  83       $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libnio/fs)) \
  84     #
  85 
  86 BUILD_LIBNIO_CFLAGS := \
  87     $(addprefix -I, $(BUILD_LIBNIO_SRC)) \
  88     -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
  89     $(LIBJAVA_HEADER_FLAGS) \
  90     $(addprefix -I, $(BUILD_LIBNET_SRC))
  91 
















  92 $(eval $(call SetupJdkLibrary, BUILD_LIBNIO, \
  93     NAME := nio, \
  94     SRC := $(BUILD_LIBNIO_SRC), \
  95     EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \
  96     OPTIMIZATION := HIGH, \
  97     WARNINGS_AS_ERRORS_xlc := false, \
  98     CFLAGS := $(CFLAGS_JDKLIB) \
  99         $(BUILD_LIBNIO_CFLAGS), \

 100     LDFLAGS := $(LDFLAGS_JDKLIB) \
 101         $(call SET_SHARED_LIBRARY_ORIGIN), \
 102     LIBS_unix := -ljava -lnet, \
 103     LIBS_linux := -lpthread $(LIBDL), \
 104     LIBS_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \
 105         -lsendfile, \
 106     LIBS_aix := $(LIBDL), \
 107     LIBS_macosx := \
 108         -framework CoreFoundation -framework CoreServices, \
 109     LIBS_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
 110         $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \
 111         advapi32.lib, \
 112 ))
 113 
 114 TARGETS += $(BUILD_LIBNIO)
 115 
 116 $(BUILD_LIBNIO): $(BUILD_LIBNET)
 117 
 118 ################################################################################
 119 # Create the macosx security library


< prev index next >