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
36
37 BUILD_LIBNIO_CFLAGS := \
38 $(addprefix -I, $(BUILD_LIBNIO_SRC)) \
39 -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
40 $(LIBJAVA_HEADER_FLAGS) \
41 $(addprefix -I, $(BUILD_LIBNET_SRC))
42
43 ifeq ($(OPENJDK_TARGET_OS), linux)
44 BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
45 endif
46
47 ifeq ($(OPENJDK_TARGET_OS), macosx)
48 BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
49 BUILD_LIBNIO_EXFILES += \
50 GioFileTypeDetector.c \
51 #
52 endif
53
54 ifeq ($(OPENJDK_TARGET_OS), solaris)
55 BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
56 endif
57
58 ifeq ($(OPENJDK_TARGET_OS), aix)
59 BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
60 BUILD_LIBNIO_EXFILES += \
61 /NativeThread.c
62 # Notice: we really need the leading slash here because otherwise every
63 # FILE_NAME in EXCLUDE_FILES will actually match any file ending in FILE_NAME
64 # (e.g. 'NativeThread.c' will also exclude 'AixNativeThread.c').
65 endif
66
67 $(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \
68 LIBRARY := nio, \
69 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
70 SRC := $(BUILD_LIBNIO_SRC), \
71 EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \
72 OPTIMIZATION := HIGH, \
73 WARNINGS_AS_ERRORS_xlc := false, \
74 CFLAGS := $(CFLAGS_JDKLIB) \
75 $(BUILD_LIBNIO_CFLAGS), \
|
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
36
37 BUILD_LIBNIO_CFLAGS := \
38 $(addprefix -I, $(BUILD_LIBNIO_SRC)) \
39 -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
40 $(LIBJAVA_HEADER_FLAGS) \
41 $(addprefix -I, $(BUILD_LIBNET_SRC))
42
43 ifeq ($(OPENJDK_TARGET_OS), linux)
44 BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
45 endif
46
47 ifeq ($(OPENJDK_TARGET_OS), macosx)
48 BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
49 BUILD_LIBNIO_EXFILES += \
50 GioFileTypeDetector.c \
51 #
52 endif
53
54 ifeq ($(OPENJDK_TARGET_OS), solaris)
55 BUILD_LIBNIO_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
56 BUILD_LIBNIO_EXFILES += \
57 GioFileTypeDetector.c \
58 #
59 endif
60
61 ifeq ($(OPENJDK_TARGET_OS), aix)
62 BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS)
63 BUILD_LIBNIO_EXFILES += \
64 /NativeThread.c
65 # Notice: we really need the leading slash here because otherwise every
66 # FILE_NAME in EXCLUDE_FILES will actually match any file ending in FILE_NAME
67 # (e.g. 'NativeThread.c' will also exclude 'AixNativeThread.c').
68 endif
69
70 $(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \
71 LIBRARY := nio, \
72 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
73 SRC := $(BUILD_LIBNIO_SRC), \
74 EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \
75 OPTIMIZATION := HIGH, \
76 WARNINGS_AS_ERRORS_xlc := false, \
77 CFLAGS := $(CFLAGS_JDKLIB) \
78 $(BUILD_LIBNIO_CFLAGS), \
|