< prev index next >

jdk/make/lib/NioLibraries.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


  52 
  53 ifeq ($(OPENJDK_TARGET_OS), solaris)
  54   BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  55 endif
  56 
  57 ifeq ($(OPENJDK_TARGET_OS), aix)
  58   BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  59   BUILD_LIBNIO_EXFILES += \
  60       NativeThread.c
  61 endif
  62 
  63 $(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \
  64     LIBRARY := nio, \
  65     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  66     SRC := $(BUILD_LIBNIO_SRC), \
  67     EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \
  68     LANG := C, \
  69     OPTIMIZATION := HIGH, \
  70     CFLAGS := $(CFLAGS_JDKLIB) \
  71         $(BUILD_LIBNIO_CFLAGS), \



  72     MAPFILE := $(BUILD_LIBNIO_MAPFILE), \
  73     LDFLAGS := $(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \
  74         $(call SET_SHARED_LIBRARY_ORIGIN), \
  75     LDFLAGS_SUFFIX_linux := -ljava -lnet -lpthread $(LIBDL), \
  76     LDFLAGS_SUFFIX_aix := -ljava -lnet $(LIBDL),\
  77     LDFLAGS_SUFFIX_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \
  78         -lsendfile -ljava -lnet -lc, \
  79     LDFLAGS_SUFFIX_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
  80         $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \
  81         advapi32.lib, \
  82     LDFLAGS_SUFFIX_macosx := -ljava -lnet -pthread -framework CoreFoundation, \
  83     LDFLAGS_SUFFIX :=, \
  84     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  85     RC_FLAGS := $(RC_FLAGS) \
  86         -D "JDK_FNAME=nio.dll" \
  87         -D "JDK_INTERNAL_NAME=nio" \
  88         -D "JDK_FTYPE=0x2L", \
  89     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnio, \
  90     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  91 
  92 TARGETS += $(BUILD_LIBNIO)
  93 
  94 $(BUILD_LIBNIO): $(BUILD_LIBNET)
  95 
   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


  52 
  53 ifeq ($(OPENJDK_TARGET_OS), solaris)
  54   BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  55 endif
  56 
  57 ifeq ($(OPENJDK_TARGET_OS), aix)
  58   BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
  59   BUILD_LIBNIO_EXFILES += \
  60       NativeThread.c
  61 endif
  62 
  63 $(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \
  64     LIBRARY := nio, \
  65     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  66     SRC := $(BUILD_LIBNIO_SRC), \
  67     EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \
  68     LANG := C, \
  69     OPTIMIZATION := HIGH, \
  70     CFLAGS := $(CFLAGS_JDKLIB) \
  71         $(BUILD_LIBNIO_CFLAGS), \
  72     DISABLED_WARNINGS_gcc := type-limits, \
  73     DISABLED_WARNINGS_clang := tautological-compare, \
  74     DISABLED_WARNINGS_microsoft := 4244, \
  75     MAPFILE := $(BUILD_LIBNIO_MAPFILE), \
  76     LDFLAGS := $(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \
  77         $(call SET_SHARED_LIBRARY_ORIGIN), \
  78     LDFLAGS_SUFFIX_linux := -ljava -lnet -lpthread $(LIBDL), \
  79     LDFLAGS_SUFFIX_aix := -ljava -lnet $(LIBDL),\
  80     LDFLAGS_SUFFIX_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \
  81         -lsendfile -ljava -lnet -lc, \
  82     LDFLAGS_SUFFIX_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
  83         $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \
  84         advapi32.lib, \
  85     LDFLAGS_SUFFIX_macosx := -ljava -lnet -pthread -framework CoreFoundation, \
  86     LDFLAGS_SUFFIX :=, \
  87     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  88     RC_FLAGS := $(RC_FLAGS) \
  89         -D "JDK_FNAME=nio.dll" \
  90         -D "JDK_INTERNAL_NAME=nio" \
  91         -D "JDK_FTYPE=0x2L", \
  92     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnio, \
  93     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  94 
  95 TARGETS += $(BUILD_LIBNIO)
  96 
  97 $(BUILD_LIBNIO): $(BUILD_LIBNET)

< prev index next >