jdk/make/lib/NioLibraries.gmk
author pchelko
Wed, 23 Apr 2014 17:56:05 +0400
changeset 24529 c580bcb3aabc
parent 23016 1805013d2034
child 25859 3317bb8137f4
permissions -rw-r--r--
8027148: SystemFlavorMap.getNativesForFlavor returns list of native formats in incorrect order Reviewed-by: anthony, serb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
16476
e269be167fae 8001334: Remove use of JVM_* functions from java.io code
dxu
parents: 15676
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    26
BUILD_LIBNIO_SRC := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    27
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/nio \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    28
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    29
    $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/fs
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    30
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    31
BUILD_LIBNIO_CFLAGS := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    32
    -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    33
    -I$(JDK_TOPDIR)/src/share/native/java/io \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    34
    -I$(JDK_TOPDIR)/src/share/native/java/net \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    35
    -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    36
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    37
BUILD_LIBNIO_FILES := \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    38
    DatagramChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    39
    DatagramDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    40
    FileChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    41
    FileDispatcherImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    42
    FileKey.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    43
    IOUtil.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    44
    MappedByteBuffer.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    45
    Net.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    46
    ServerSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    47
    SocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    48
    SocketDispatcher.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    49
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    50
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    51
  BUILD_LIBNIO_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    52
      Iocp.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    53
      RegistryFileTypeDetector.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    54
      WindowsAsynchronousFileChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    55
      WindowsAsynchronousServerSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    56
      WindowsAsynchronousSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    57
      WindowsNativeDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    58
      WindowsSelectorImpl.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    59
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    60
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    61
ifeq ($(OPENJDK_TARGET_OS), linux)
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20900
diff changeset
    62
  BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    63
  BUILD_LIBNIO_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    64
      EPoll.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    65
      EPollArrayWrapper.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    66
      EPollPort.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    67
      InheritedChannel.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    68
      NativeThread.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    69
      PollArrayWrapper.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    70
      UnixAsynchronousServerSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    71
      UnixAsynchronousSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    72
      GnomeFileTypeDetector.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    73
      MagicFileTypeDetector.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    74
      LinuxNativeDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    75
      LinuxWatchService.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    76
      UnixCopyFile.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    77
      UnixNativeDispatcher.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    78
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    79
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    80
ifeq ($(OPENJDK_TARGET_OS), macosx)
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20900
diff changeset
    81
  BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    82
  BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    83
  BUILD_LIBNIO_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    84
      InheritedChannel.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    85
      NativeThread.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    86
      PollArrayWrapper.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    87
      UnixAsynchronousServerSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    88
      UnixAsynchronousSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    89
      BsdNativeDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    90
      MacOSXNativeDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    91
      UnixCopyFile.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    92
      UnixNativeDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    93
      KQueue.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    94
      KQueuePort.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    95
      KQueueArrayWrapper.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    96
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    97
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
    98
ifeq ($(OPENJDK_TARGET_OS), solaris)
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20900
diff changeset
    99
  BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   100
  BUILD_LIBNIO_FILES += \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   101
      DevPollArrayWrapper.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   102
      InheritedChannel.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   103
      NativeThread.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   104
      PollArrayWrapper.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   105
      SolarisEventPort.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   106
      UnixAsynchronousServerSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   107
      UnixAsynchronousSocketChannelImpl.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   108
      GnomeFileTypeDetector.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   109
      SolarisNativeDispatcher.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   110
      SolarisWatchService.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   111
      UnixCopyFile.c \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   112
      UnixNativeDispatcher.c
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   113
endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   114
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   115
ifeq ($(OPENJDK_TARGET_OS), aix)
22599
d361ec315b16 8029669: PPC64: 8027566 changes broke AIX build after sync
simonis
parents: 22598
diff changeset
   116
  BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
22597
7515a991bb37 8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents: 22595
diff changeset
   117
  BUILD_LIBNIO_SRC += \
7515a991bb37 8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents: 22595
diff changeset
   118
      $(JDK_TOPDIR)/src/aix/native/sun/nio/ch \
7515a991bb37 8024854: PPC64: Basic changes and files to build the class library on AIX
simonis
parents: 22595
diff changeset
   119
      $(JDK_TOPDIR)/src/aix/native/sun/nio/fs
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   120
  BUILD_LIBNIO_FILES += \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   121
      AixPollPort.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   122
      InheritedChannel.c \
23016
1805013d2034 8033154: PPC64: Fix AIX build after integration into jdk9/dev
simonis
parents: 22607
diff changeset
   123
      AixNativeThread.c \
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   124
      PollArrayWrapper.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   125
      UnixAsynchronousServerSocketChannelImpl.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   126
      UnixAsynchronousSocketChannelImpl.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   127
      GnomeFileTypeDetector.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   128
      UnixCopyFile.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   129
      AixNativeDispatcher.c \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   130
      UnixNativeDispatcher.c
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   131
endif
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   132
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   133
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   134
    LIBRARY := nio, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   135
    OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   136
    SRC := $(BUILD_LIBNIO_SRC), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   137
    INCLUDE_FILES := $(BUILD_LIBNIO_FILES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   138
    LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   139
    OPTIMIZATION := HIGH, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   140
    CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   141
        $(BUILD_LIBNIO_CFLAGS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   142
    MAPFILE := $(BUILD_LIBNIO_MAPFILE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   143
    LDFLAGS := $(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   144
        $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   145
    LDFLAGS_SUFFIX_linux := -ljava -lnet -lpthread $(LIBDL), \
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   146
    LDFLAGS_SUFFIX_aix := -ljava -lnet $(LIBDL),\
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   147
    LDFLAGS_SUFFIX_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   148
        -lsendfile -ljava -lnet -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   149
    LDFLAGS_SUFFIX_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   150
        $(JDK_OUTPUTDIR)/objs/libnet/net.lib \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   151
        advapi32.lib, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   152
    LDFLAGS_SUFFIX_macosx := -ljava -lnet -pthread -framework CoreFoundation, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   153
    LDFLAGS_SUFFIX :=, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   154
    VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   155
    RC_FLAGS := $(RC_FLAGS) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   156
        -D "JDK_FNAME=nio.dll" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   157
        -D "JDK_INTERNAL_NAME=nio" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   158
        -D "JDK_FTYPE=0x2L", \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   159
    OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libnio, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   160
    DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   161
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   162
BUILD_LIBRARIES += $(BUILD_LIBNIO)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   163
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   164
$(BUILD_LIBNIO): $(BUILD_LIBNET)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   165
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   166
##########################################################################################
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   167
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   168
ifeq ($(OPENJDK_TARGET_OS_API), posix)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   169
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   170
  ifeq (, $(filter $(OPENJDK_TARGET_OS), macosx aix))
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   171
20900
c5e76df5aa74 8027059: (sctp) fatal warnings overly restrictive with gcc 4.8.1
chegar
parents: 20896
diff changeset
   172
    # Suppress unused parameters required by exported JNI functions.
c5e76df5aa74 8027059: (sctp) fatal warnings overly restrictive with gcc 4.8.1
chegar
parents: 20896
diff changeset
   173
    SCTP_WERROR := -Werror -Wno-error=unused-parameter
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   174
    ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   175
      SCTP_WERROR :=
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   176
    endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   177
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   178
    $(eval $(call SetupNativeCompilation,BUILD_LIBSCTP, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   179
        LIBRARY := sctp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   180
        OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   181
        SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   182
        LANG := C, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   183
        OPTIMIZATION := LOW, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   184
        CFLAGS := $(CFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   185
            -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   186
            -I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   187
            -I$(JDK_TOPDIR)/src/share/native/java/net \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   188
            -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   189
            -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   190
        CFLAGS_linux := $(SCTP_WERROR), \
21805
c7d7946239de 8027566: Remove the old build system
ihse
parents: 20900
diff changeset
   191
        MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsctp/mapfile-vers, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   192
        LDFLAGS := $(LDFLAGS_JDKLIB) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   193
            $(call SET_SHARED_LIBRARY_ORIGIN), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   194
        LDFLAGS_SUFFIX_linux := -lpthread $(LIBDL) -ljava -ljvm, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   195
        LDFLAGS_SUFFIX_posix := -lnio -lnet, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   196
        LDFLAGS_SUFFIX_solaris := -lsocket -ljava -ljvm -lc, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   197
        LDFLAGS_SUFFIX_macosx := -ljava -ljvm, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   198
        OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsctp, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   199
        DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   200
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   201
    BUILD_LIBRARIES += $(BUILD_LIBSCTP)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   202
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   203
    $(BUILD_LIBSCTP): $(BUILD_LIBNIO)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   204
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20203
diff changeset
   205
endif