< prev index next >

jdk/make/lib/NetworkingLibraries.gmk

Print this page


   1 #
   2 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 LIBNET_SRC_DIRS := $(call FindSrcDirsForLib, java.base, net)
  27 
  28 $(eval $(call SetupNativeCompilation,BUILD_LIBNET, \
  29     LIBRARY := net, \
  30     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  31     SRC := $(LIBNET_SRC_DIRS), \
  32     LANG := C, \
  33     OPTIMIZATION := LOW, \
  34     CFLAGS := $(CFLAGS_JDKLIB) -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
  35         $(LIBJAVA_HEADER_FLAGS) $(addprefix -I, $(LIBNET_SRC_DIRS)), \



  36     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnet/mapfile-vers, \
  37     LDFLAGS := $(LDFLAGS_JDKLIB) \
  38         $(call SET_SHARED_LIBRARY_ORIGIN), \
  39     LDFLAGS_SUFFIX_macosx := -ljvm -ljava, \
  40     LDFLAGS_SUFFIX_solaris := -ljvm -ljava -lnsl -lsocket $(LIBDL) -lc, \
  41     LDFLAGS_SUFFIX_linux := $(LIBDL) -ljvm -lpthread -ljava, \
  42     LDFLAGS_SUFFIX_aix := $(LIBDL) -ljvm -ljava,\
  43     LDFLAGS_SUFFIX_windows := ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \
  44         delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \
  45         -DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \
  46     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  47     RC_FLAGS := $(RC_FLAGS) \
  48         -D "JDK_FNAME=net.dll" \
  49         -D "JDK_INTERNAL_NAME=net" \
  50         -D "JDK_FTYPE=0x2L", \
  51     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet, \
  52     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  53 
  54 $(BUILD_LIBNET): $(BUILD_LIBJAVA)
  55 
   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 LIBNET_SRC_DIRS := $(call FindSrcDirsForLib, java.base, net)
  27 
  28 $(eval $(call SetupNativeCompilation,BUILD_LIBNET, \
  29     LIBRARY := net, \
  30     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  31     SRC := $(LIBNET_SRC_DIRS), \
  32     LANG := C, \
  33     OPTIMIZATION := LOW, \
  34     CFLAGS := $(CFLAGS_JDKLIB) -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
  35         $(LIBJAVA_HEADER_FLAGS) $(addprefix -I, $(LIBNET_SRC_DIRS)), \
  36     DISABLED_WARNINGS_gcc := format-nonliteral, \
  37     DISABLED_WARNINGS_clang := parentheses-equality constant-logical-operand, \
  38     DISABLED_WARNINGS_microsoft := 4244 4047 4133, \
  39     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnet/mapfile-vers, \
  40     LDFLAGS := $(LDFLAGS_JDKLIB) \
  41         $(call SET_SHARED_LIBRARY_ORIGIN), \
  42     LDFLAGS_SUFFIX_macosx := -ljvm -ljava, \
  43     LDFLAGS_SUFFIX_solaris := -ljvm -ljava -lnsl -lsocket $(LIBDL) -lc, \
  44     LDFLAGS_SUFFIX_linux := $(LIBDL) -ljvm -lpthread -ljava, \
  45     LDFLAGS_SUFFIX_aix := $(LIBDL) -ljvm -ljava,\
  46     LDFLAGS_SUFFIX_windows := ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \
  47         delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \
  48         -DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \
  49     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  50     RC_FLAGS := $(RC_FLAGS) \
  51         -D "JDK_FNAME=net.dll" \
  52         -D "JDK_INTERNAL_NAME=net" \
  53         -D "JDK_FTYPE=0x2L", \
  54     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet, \
  55     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  56 
  57 $(BUILD_LIBNET): $(BUILD_LIBJAVA)
  58 
< prev index next >