< prev index next >

jdk/make/lib/Lib-jdk.sctp.gmk

Print this page


   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 include LibCommon.gmk
  27 
  28 ################################################################################
  29 
  30 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
  31 
  32   ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix))
  33     # DISABLED_WARNINGS_gcc := unused-parameter needed to
  34     # suppress unused parameters required by exported JNI functions.
  35 
  36     $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \
  37         LIBRARY := sctp, \
  38         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  39         SRC := $(JDK_TOPDIR)/src/jdk.sctp/$(OPENJDK_TARGET_OS_TYPE)/native/libsctp, \
  40         OPTIMIZATION := LOW, \
  41         CFLAGS := $(CFLAGS_JDKLIB) \
  42             -I $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \
  43             -I $(JDK_TOPDIR)/src/java.base/share/native/libnio/ch \
  44             $(addprefix -I, $(call FindSrcDirsForLib, java.base, net)) \
  45             $(LIBJAVA_HEADER_FLAGS) \
  46             -I$(SUPPORT_OUTPUTDIR)/headers/jdk.sctp \
  47             -I$(SUPPORT_OUTPUTDIR)/headers/java.base, \
  48         DISABLED_WARNINGS_gcc := unused-parameter, \
  49         MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \
  50         LDFLAGS := $(LDFLAGS_JDKLIB) \
  51             $(call SET_SHARED_LIBRARY_ORIGIN), \
  52         LIBS_unix := -lnio -lnet -ljava -ljvm, \
  53         LIBS_linux := -lpthread $(LIBDL), \
  54         LIBS_solaris := -lsocket -lc, \
  55         OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libsctp, \
  56     ))
  57 

  58     TARGETS += $(BUILD_LIBSCTP)
  59 
  60     $(BUILD_LIBSCTP): $(call FindLib, java.base, nio)
  61   endif
  62 endif
  63 
  64 ################################################################################
   1 #
   2 # Copyright (c) 2011, 2016, 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 include LibCommon.gmk
  27 
  28 ################################################################################
  29 
  30 ifneq ($(filter $(OPENJDK_TARGET_OS), linux solaris), )


  31   # DISABLED_WARNINGS_gcc := unused-parameter needed to
  32   # suppress unused parameters required by exported JNI functions.
  33 
  34   $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \
  35       LIBRARY := sctp, \
  36       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  37       SRC := $(JDK_TOPDIR)/src/jdk.sctp/$(OPENJDK_TARGET_OS_TYPE)/native/libsctp, \
  38       OPTIMIZATION := LOW, \
  39       CFLAGS := $(CFLAGS_JDKLIB) \
  40           -I $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \
  41           -I $(JDK_TOPDIR)/src/java.base/share/native/libnio/ch \
  42           $(addprefix -I, $(call FindSrcDirsForLib, java.base, net)) \
  43           $(LIBJAVA_HEADER_FLAGS) \
  44           -I$(SUPPORT_OUTPUTDIR)/headers/jdk.sctp \
  45           -I$(SUPPORT_OUTPUTDIR)/headers/java.base, \
  46       DISABLED_WARNINGS_gcc := unused-parameter, \
  47       MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \
  48       LDFLAGS := $(LDFLAGS_JDKLIB) \
  49           $(call SET_SHARED_LIBRARY_ORIGIN), \
  50       LIBS_unix := -lnio -lnet -ljava -ljvm, \
  51       LIBS_linux := -lpthread $(LIBDL), \
  52       LIBS_solaris := -lsocket -lc, \
  53       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libsctp, \
  54   ))
  55 
  56 
  57   TARGETS += $(BUILD_LIBSCTP)
  58 
  59   $(BUILD_LIBSCTP): $(call FindLib, java.base, nio)

  60 endif
  61 
  62 ################################################################################
< prev index next >