author | jprtadm |
Tue, 13 Feb 2018 15:23:08 +0100 | |
branch | ihse-remove-mapfiles-branch |
changeset 56116 | 0bad0488e9fa |
parent 56107 | 706dba352bda |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
56107 | 2 |
# Copyright (c) 2011, 2018, 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 | 26 |
BUILD_LIBNIO_SRC := \ |
47217 | 27 |
$(TOPDIR)/src/java.base/share/native/libnio \ |
28 |
$(TOPDIR)/src/java.base/share/native/libnio/ch \ |
|
29 |
$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio \ |
|
25859 | 30 |
$(sort $(wildcard \ |
47217 | 31 |
$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/ch \ |
32 |
$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libnio/fs \ |
|
33 |
$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libnio/ch \ |
|
34 |
$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libnio/fs)) \ |
|
25859 | 35 |
# |
20547 | 36 |
|
37 |
BUILD_LIBNIO_CFLAGS := \ |
|
25859 | 38 |
$(addprefix -I, $(BUILD_LIBNIO_SRC)) \ |
27565 | 39 |
-I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
25859 | 40 |
$(LIBJAVA_HEADER_FLAGS) \ |
41 |
$(addprefix -I, $(BUILD_LIBNET_SRC)) |
|
20547 | 42 |
|
43 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \ |
|
44 |
LIBRARY := nio, \ |
|
45 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
46 |
SRC := $(BUILD_LIBNIO_SRC), \ |
|
25859 | 47 |
EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \ |
20547 | 48 |
OPTIMIZATION := HIGH, \ |
37529
868c7195632c
8154087: Fix AIX and Linux/ppc64le after the integration of the new hotspot build
simonis
parents:
35276
diff
changeset
|
49 |
WARNINGS_AS_ERRORS_xlc := false, \ |
20547 | 50 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
51 |
$(BUILD_LIBNIO_CFLAGS), \ |
|
33406 | 52 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
20547 | 53 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
33406 | 54 |
LIBS_unix := -ljava -lnet, \ |
55 |
LIBS_linux := -lpthread $(LIBDL), \ |
|
56 |
LIBS_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \ |
|
57 |
-lsendfile -lc, \ |
|
58 |
LIBS_aix := $(LIBDL), \ |
|
59 |
LIBS_macosx := \ |
|
60 |
-framework CoreFoundation -framework CoreServices, \ |
|
61 |
LIBS_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \ |
|
27565 | 62 |
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnet/net.lib \ |
20547 | 63 |
advapi32.lib, \ |
25859 | 64 |
VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
20547 | 65 |
RC_FLAGS := $(RC_FLAGS) \ |
66 |
-D "JDK_FNAME=nio.dll" \ |
|
67 |
-D "JDK_INTERNAL_NAME=nio" \ |
|
68 |
-D "JDK_FTYPE=0x2L", \ |
|
27565 | 69 |
OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libnio, \ |
35276 | 70 |
)) |
20547 | 71 |
|
27565 | 72 |
TARGETS += $(BUILD_LIBNIO) |
20547 | 73 |
|
74 |
$(BUILD_LIBNIO): $(BUILD_LIBNET) |