author | erikj |
Fri, 05 Apr 2013 09:39:10 +0200 | |
changeset 16636 | 1cc691bcfe50 |
parent 16507 | 75bde2ca0061 |
child 16852 | 60207b2b4b42 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
2 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
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 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
26 |
INCLUDEDIR = $(JDK_OUTPUTDIR)/include |
12892 | 27 |
|
13164 | 28 |
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/$(OPENJDK_TARGET_OS) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
29 |
|
13164 | 30 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
31 |
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/win32 |
|
32 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
33 |
OPENJDK_TARGET_OS_INCLUDE = $(INCLUDEDIR)/darwin |
|
12892 | 34 |
endif |
35 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
36 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
37 |
# Copy exported header files to outputdir. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
38 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
39 |
H_TARGET_FILES =$(INCLUDEDIR)/jdwpTransport.h \ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
40 |
$(INCLUDEDIR)/jni.h \ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
41 |
$(INCLUDEDIR)/jvmti.h \ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
42 |
$(INCLUDEDIR)/jvmticmlr.h \ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
43 |
$(INCLUDEDIR)/classfile_constants.h \ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
44 |
$(INCLUDEDIR)/jawt.h \ |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
45 |
$(OPENJDK_TARGET_OS_INCLUDE)/jni_md.h \ |
13164 | 46 |
$(OPENJDK_TARGET_OS_INCLUDE)/jawt_md.h |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
47 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
48 |
$(INCLUDEDIR)/%.h: $(JDK_TOPDIR)/src/share/javavm/export/%.h |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
49 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
50 |
|
13702 | 51 |
$(OPENJDK_TARGET_OS_INCLUDE)/%.h: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export/%.h |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
52 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
53 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
54 |
COPY_FILES = $(H_TARGET_FILES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
55 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
56 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
57 |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
58 |
ifndef OPENJDK |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
59 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
60 |
COPY_FILES += $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCallbacks.h \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
61 |
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.h \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
62 |
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgePackages.h \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
63 |
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.c \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
64 |
$(JDK_OUTPUTDIR)/lib/accessibility.properties |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
65 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
66 |
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/%: \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
67 |
$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/% |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
68 |
$(install-file) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
69 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
70 |
$(JDK_OUTPUTDIR)/lib/accessibility.properties: \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
71 |
$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/accessibility.properties |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
72 |
$(install-file) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
73 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
74 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
75 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
76 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
77 |
########################################################################################## |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14759
diff
changeset
|
78 |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
79 |
LIBDIR = $(JDK_OUTPUTDIR)/lib |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
80 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
81 |
MGMT_LIBDIR = $(LIBDIR)/management |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
82 |
MGMT_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/management |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
83 |
MGMT_SRC_FILES = $(wildcard $(MGMT_LIB_SRC)/*) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
84 |
MGMT_TARGET_FILES = $(subst $(MGMT_LIB_SRC),$(MGMT_LIBDIR),$(MGMT_SRC_FILES)) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
85 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
86 |
$(MGMT_LIBDIR)/management.properties: $(MGMT_LIB_SRC)/management.properties |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
87 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
88 |
$(CHMOD) 644 $@ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
89 |
|
13164 | 90 |
# this file has different permissions...don't know why... |
91 |
$(MGMT_LIBDIR)/jmxremote.access: $(MGMT_LIB_SRC)/jmxremote.access |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
92 |
$(call install-file) |
13164 | 93 |
$(CHMOD) 644 $@ |
94 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
95 |
$(MGMT_LIBDIR)/%: $(MGMT_LIB_SRC)/% |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
96 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
97 |
$(CHMOD) 444 $@ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
98 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
99 |
COPY_FILES += $(MGMT_TARGET_FILES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
100 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
101 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
102 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
103 |
LOGGING_LIB_SRC = $(JDK_TOPDIR)/src/share/lib |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
104 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
105 |
$(LIBDIR)/logging.properties: $(LOGGING_LIB_SRC)/logging.properties |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
106 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
107 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
108 |
COPY_FILES += $(LIBDIR)/logging.properties |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
109 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
110 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
111 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
112 |
# Copy property files from sun/print to LIBDIR |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
113 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
114 |
PSFONTPROPFILE_SRC_DIR = $(JDK_TOPDIR)/src/share/classes/sun/print |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
115 |
PSFONTPROPFILE_SRCS = $(wildcard $(PSFONTPROPFILE_SRC_DIR)/*.properties*) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
116 |
PSFONTPROPFILE_TARGET_FILES = $(subst $(PSFONTPROPFILE_SRC_DIR),$(LIBDIR),$(PSFONTPROPFILE_SRCS)) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
117 |
|
12892 | 118 |
$(LIBDIR)/%: $(PSFONTPROPFILE_SRC_DIR)/% |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
119 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
120 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
121 |
COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
122 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
123 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
124 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
125 |
# Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
126 |
# |
13164 | 127 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
13702 | 128 |
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib |
13164 | 129 |
else |
130 |
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib |
|
131 |
endif |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
132 |
|
13164 | 133 |
$(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
134 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
135 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
136 |
COPY_FILES += $(LIBDIR)/flavormap.properties |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
137 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
138 |
CURSORS_DEST_DIR = $(LIBDIR)/images/cursors |
13702 | 139 |
CURSORS_OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib/images/cursors |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
140 |
|
13164 | 141 |
$(CURSORS_DEST_DIR)/cursors.properties: $(CURSORS_OPENJDK_TARGET_OS_LIB_SRC)/cursors.properties |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
142 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
143 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
144 |
COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
145 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
146 |
CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors |
13164 | 147 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
148 |
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif) |
13164 | 149 |
else # OPENJDK_TARGET_OS |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
150 |
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif) |
13164 | 151 |
endif # OPENJDK_TARGET_OS |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
152 |
CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES)) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
153 |
|
12892 | 154 |
$(CURSORS_DEST_DIR)/%: $(CURSORS_LIB_SRC)/% |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
155 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
156 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
157 |
COPY_FILES += $(CURSORS_TARGET_FILES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
158 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
159 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
160 |
|
13702 | 161 |
CONTENT_TYPES_SRC=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
162 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
163 |
$(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
164 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
165 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
166 |
COPY_FILES += $(LIBDIR)/content-types.properties |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
167 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
168 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
169 |
|
12892 | 170 |
CALENDARS_SRC := $(JDK_TOPDIR)/src/share/lib |
171 |
||
172 |
$(LIBDIR)/calendars.properties: $(CALENDARS_SRC)/calendars.properties |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
173 |
$(call install-file) |
12892 | 174 |
|
175 |
COPY_FILES += $(LIBDIR)/calendars.properties |
|
176 |
||
177 |
########################################################################################## |
|
178 |
||
13164 | 179 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
12892 | 180 |
|
13702 | 181 |
TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib |
12892 | 182 |
|
183 |
$(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
184 |
$(call install-file) |
12892 | 185 |
|
186 |
COPY_FILES += $(LIBDIR)/tzmappings |
|
187 |
||
188 |
endif |
|
189 |
||
190 |
########################################################################################## |
|
191 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
192 |
ICCPROFILE_DEST_DIR := $(LIBDIR)/cmm |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
193 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
194 |
ifdef OPENJDK |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
195 |
ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/share/lib/cmm/lcms |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
196 |
else |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
197 |
ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
198 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
199 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
200 |
ICCPROFILE_SRCS:=$(wildcard $(ICCPROFILE_SRC_DIR)/*.pf) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
201 |
ICCPROFILE_TARGET_FILES:=$(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS)) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
202 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
203 |
$(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
204 |
$(call install-file) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
205 |
$(CHMOD) 444 $@ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
206 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
207 |
COPY_FILES += $(ICCPROFILE_TARGET_FILES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
208 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
209 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
210 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
211 |
#make sure freetype dll will be available at runtime as well as link time |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
212 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
213 |
#NB: Default freetype build system uses -h linker option and |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
214 |
# result .so contains hardcoded library name that is later |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
215 |
# used for adding dependencies to other objects |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
216 |
# (e.g. libfontmanager.so). |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
217 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
218 |
# It is not obvious how to extract that hardcoded name (libfreetype.so.6) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
219 |
# without overcomplicating logic here. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
220 |
# To workaround this we hardcode .6 suffix for now. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
221 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
222 |
# Note that .so.6 library will not be found by System.loadLibrary() |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
223 |
# but fortunately we need to load FreeType library explicitly |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
224 |
# on windows only |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
225 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
226 |
#TODO: rework this to avoid hardcoding library name in the makefile |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
227 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
228 |
ifdef OPENJDK |
13164 | 229 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
230 |
FREETYPE_LIB = $(JDK_OUTPUTDIR)/bin/$(call SHARED_LIBRARY,freetype) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
231 |
else |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
232 |
ifeq ($(USING_SYSTEM_FT_LIB), false) |
13702 | 233 |
FREETYPE_LIB = $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6 |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
234 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
235 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
236 |
|
12892 | 237 |
$(FREETYPE_LIB): $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
238 |
$(CP) $(FREETYPE2_LIB_PATH)/$(call SHARED_LIBRARY,freetype) $@ |
13164 | 239 |
ifeq ($(OPENJDK_BUILD_OS), windows) |
12892 | 240 |
$(CHMOD) +rx $@ |
241 |
endif |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
242 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
243 |
COPY_FILES += $(FREETYPE_LIB) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
244 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
245 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
246 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
247 |
|
14231 | 248 |
# Copy msvcrXX.dll on windows |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
249 |
|
13164 | 250 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
14231 | 251 |
MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL)) |
15340
b498be4dc7ff
8006873: SWAT-b74 msvcr100.dll does not have the permission for all
erikj
parents:
15148
diff
changeset
|
252 |
# Chmod to avoid permission issues if bundles are unpacked on unix platforms. |
14231 | 253 |
$(MSVCR_TARGET): $(MSVCR_DLL) |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
254 |
$(call install-file) |
15340
b498be4dc7ff
8006873: SWAT-b74 msvcr100.dll does not have the permission for all
erikj
parents:
15148
diff
changeset
|
255 |
$(CHMOD) a+rx $@ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
256 |
|
14231 | 257 |
COPY_FILES += $(MSVCR_TARGET) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
258 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
259 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
260 |
########################################################################################## |
12892 | 261 |
|
262 |
HPROF_SRC=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt |
|
263 |
||
264 |
$(LIBDIR)/jvm.hprof.txt : $(HPROF_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
265 |
$(call install-file) |
12892 | 266 |
|
267 |
COPY_FILES += $(LIBDIR)/jvm.hprof.txt |
|
268 |
||
269 |
########################################################################################## |
|
270 |
||
271 |
# |
|
272 |
# How to install jvm.cfg. |
|
273 |
# |
|
274 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
13702 | 275 |
JVMCFG_ARCH := zero |
12892 | 276 |
else |
13702 | 277 |
JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY) |
12892 | 278 |
endif |
279 |
||
13164 | 280 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
12892 | 281 |
JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg |
282 |
else |
|
13702 | 283 |
JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg |
12892 | 284 |
endif |
13702 | 285 |
JVMCFG_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
12892 | 286 |
JVMCFG := $(JVMCFG_DIR)/jvm.cfg |
287 |
||
288 |
||
13702 | 289 |
ifeq ($(OPENJDK_TARGET_CPU_BITS),32) |
12892 | 290 |
# On 32 bit machines, we can have client and/or server libjvms installed. |
291 |
# Since the currently committed jvm.cfg expects clientANDserver, we need |
|
292 |
# to patch the jvm.cfg when we have built only a client or only a server. |
|
293 |
# This should also support -kernel, -zero and -zeroshark. |
|
294 |
ifeq ($(JVM_VARIANTS),$(COMMA)client$(COMMA)) |
|
295 |
# Create a patched jvm.cfg to use -client by default and alias -server to -client. |
|
296 |
$(JVMCFG): |
|
297 |
$(MKDIR) -p $(@D) |
|
13702 | 298 |
$(RM) $(JVMCFG) |
12892 | 299 |
$(PRINTF) "-client KNOWN\n">$(JVMCFG) |
15148
7dc6d15b4380
8006579: build-infra: In jvm.cfg, alias -server to -client when no server jvm is built.
erikj
parents:
14759
diff
changeset
|
300 |
$(PRINTF) "-server ALIASED_TO -client\n">>$(JVMCFG) |
12892 | 301 |
$(PRINTF) "-hotspot ALIASED_TO -client\n">>$(JVMCFG) |
302 |
$(PRINTF) "-classic WARN\n">>$(JVMCFG) |
|
303 |
$(PRINTF) "-native ERROR\n">>$(JVMCFG) |
|
304 |
$(PRINTF) "-green ERROR\n">>$(JVMCFG) |
|
305 |
||
306 |
else |
|
307 |
ifeq ($(JVM_VARIANTS),$(COMMA)server$(COMMA)) |
|
308 |
# Create a patched jvm.cfg to use -server by default and alias -client to -server. |
|
309 |
||
310 |
$(JVMCFG): |
|
311 |
$(MKDIR) -p $(@D) |
|
13702 | 312 |
$(RM) $(JVMCFG) |
12892 | 313 |
$(PRINTF) "-server KNOWN\n">$(JVMCFG) |
314 |
$(PRINTF) "-client IGNORE\n">>$(JVMCFG) |
|
315 |
$(PRINTF) "-hotspot IGNORE\n">>$(JVMCFG) |
|
316 |
$(PRINTF) "-classic WARN\n">>$(JVMCFG) |
|
317 |
$(PRINTF) "-native ERROR\n">>$(JVMCFG) |
|
318 |
$(PRINTF) "-green ERROR\n">>$(JVMCFG) |
|
319 |
else |
|
320 |
# Use the default jvm.cfg for this 32 bit setup. |
|
321 |
$(JVMCFG): $(JVMCFG_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
322 |
$(call install-file) |
12892 | 323 |
endif |
324 |
endif |
|
325 |
else |
|
326 |
# Use the default jvm.cfg for this 64 bit setup. |
|
327 |
$(JVMCFG): $(JVMCFG_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
328 |
$(call install-file) |
12892 | 329 |
endif |
330 |
||
331 |
COPY_FILES += $(JVMCFG) |
|
332 |
||
333 |
########################################################################################## |
|
334 |
||
14759 | 335 |
PROPS_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.security-$(OPENJDK_TARGET_OS) |
12892 | 336 |
PROPS_DST := $(JDK_OUTPUTDIR)/lib/security/java.security |
337 |
||
338 |
$(PROPS_DST): $(PROPS_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
339 |
$(call install-file) |
12892 | 340 |
|
341 |
COPY_FILES += $(PROPS_DST) |
|
342 |
||
343 |
########################################################################################## |
|
344 |
||
345 |
POLICY_SRC := $(JDK_TOPDIR)/src/share/lib/security/java.policy |
|
346 |
POLICY_DST := $(JDK_OUTPUTDIR)/lib/security/java.policy |
|
347 |
||
348 |
$(POLICY_DST): $(POLICY_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
349 |
$(call install-file) |
12892 | 350 |
|
351 |
COPY_FILES += $(POLICY_DST) |
|
352 |
||
353 |
########################################################################################## |
|
354 |
||
355 |
CACERTS_SRC := $(CACERTS_FILE) |
|
356 |
CACERTS_DST := $(JDK_OUTPUTDIR)/lib/security/cacerts |
|
357 |
||
358 |
$(CACERTS_DST): $(CACERTS_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
359 |
$(call install-file) |
12892 | 360 |
|
361 |
COPY_FILES += $(CACERTS_DST) |
|
362 |
||
363 |
########################################################################################## |
|
364 |
||
365 |
ifndef OPENJDK |
|
366 |
||
367 |
BLACKLIST_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist |
|
368 |
BLACKLIST_DST := $(JDK_OUTPUTDIR)/lib/security/blacklist |
|
369 |
||
370 |
TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries |
|
371 |
TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries |
|
372 |
||
373 |
$(BLACKLIST_DST): $(BLACKLIST_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
374 |
$(call install-file) |
12892 | 375 |
|
376 |
COPY_FILES += $(BLACKLIST_DST) |
|
377 |
||
378 |
$(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
379 |
$(call install-file) |
12892 | 380 |
|
381 |
COPY_FILES += $(TRUSTEDLIBS_DST) |
|
382 |
||
383 |
endif |
|
384 |
||
385 |
########################################################################################## |
|
386 |
||
387 |
ifndef OPENJDK |
|
388 |
||
389 |
SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts |
|
390 |
SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts |
|
391 |
SHARED_FONTS_FILES := \ |
|
392 |
LucidaTypewriterRegular.ttf \ |
|
393 |
LucidaTypewriterBold.ttf \ |
|
394 |
LucidaBrightRegular.ttf \ |
|
395 |
LucidaBrightDemiBold.ttf \ |
|
396 |
LucidaBrightItalic.ttf \ |
|
397 |
LucidaBrightDemiItalic.ttf \ |
|
398 |
LucidaSansRegular.ttf \ |
|
399 |
LucidaSansDemiBold.ttf \ |
|
400 |
||
401 |
SHARED_FONTS_SRC := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_SRC_DIR)/$(F)) |
|
402 |
SHARED_FONTS_DST := $(foreach F,$(SHARED_FONTS_FILES),$(SHARED_FONTS_DST_DIR)/$(F)) |
|
403 |
||
404 |
$(SHARED_FONTS_DST_DIR)/%.ttf : $(SHARED_FONTS_SRC_DIR)/%.ttf |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
405 |
$(call install-file) |
12892 | 406 |
|
407 |
$(SHARED_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
408 |
$(call install-file) |
12892 | 409 |
|
13702 | 410 |
COPY_FILES += $(SHARED_FONTS_DST) |
411 |
||
412 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
413 |
COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir |
|
414 |
endif |
|
12892 | 415 |
|
13164 | 416 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
12892 | 417 |
|
418 |
# The oblique fonts are only needed/wanted on Linux. |
|
419 |
||
420 |
OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique |
|
421 |
OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts |
|
422 |
OBL_FONTS_FILES := LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \ |
|
423 |
LucidaSansOblique.ttf LucidaSansDemiOblique.ttf |
|
424 |
||
425 |
OBL_FONTS_SRC := $(foreach F,$(OBL_FONTS_FILES),$(OBL_FONTS_SRC_DIR)/$(F)) |
|
426 |
OBL_FONTS_DST := $(foreach F,$(OBL_FONTS_FILES),$(OBL_FONTS_DST_DIR)/$(F)) |
|
427 |
||
428 |
$(OBL_FONTS_DST_DIR)/%.ttf : $(OBL_FONTS_SRC_DIR)/%.ttf |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
429 |
$(call install-file) |
12892 | 430 |
|
431 |
$(OBL_FONTS_DST_DIR)/fonts.dir : $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
432 |
$(call install-file) |
12892 | 433 |
|
434 |
COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir |
|
435 |
||
436 |
endif # linux |
|
437 |
endif # OPENJDK |
|
438 |
||
439 |
########################################################################################## |
|
440 |
||
441 |
ifndef OPENJDK |
|
442 |
||
443 |
JS_RESOURCES_FILES := Messages.properties Messages_fr.properties |
|
444 |
JS_RESOURCES_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/classes/sun/org/mozilla/javascript/internal/resources |
|
445 |
JS_RESOURCES_DST_DIR := $(JDK_OUTPUTDIR)/classes/sun/org/mozilla/javascript/internal/resources |
|
446 |
||
447 |
JS_RESOURCES_SRC := $(foreach F,$(JS_RESOURCES_FILES),$(JS_RESOURCES_SRC_DIR)/$(F)) |
|
448 |
JS_RESOURCES_DST := $(foreach F,$(JS_RESOURCES_FILES),$(JS_RESOURCES_DST_DIR)/$(F)) |
|
449 |
||
450 |
$(JS_RESOURCES_DST_DIR)/% : $(JS_RESOURCES_SRC_DIR)/% |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
451 |
$(call install-file) |
12892 | 452 |
|
453 |
COPY_FILES += $(JS_RESOURCES_DST) |
|
454 |
||
455 |
endif |
|
456 |
||
457 |
########################################################################################## |
|
458 |
||
459 |
ifndef OPENJDK |
|
460 |
||
461 |
# |
|
462 |
# Solaris X11 Direct Graphics Access library |
|
463 |
# |
|
464 |
||
465 |
_DGALIBS_sparc = \ |
|
466 |
libxinerama.so \ |
|
467 |
libjdgaSUNWcg6.so \ |
|
468 |
libjdgaSUNWffb.so \ |
|
469 |
libjdgaSUNWm64.so \ |
|
470 |
libjdgaSUNWafb.so |
|
471 |
||
472 |
_DGALIBS_sparcv9 = \ |
|
473 |
libxinerama.so \ |
|
474 |
libjdgaSUNWcg6.so \ |
|
475 |
libjdgaSUNWffb.so \ |
|
476 |
libjdgaSUNWm64.so \ |
|
477 |
libjdgaSUNWafb.so |
|
478 |
||
479 |
_DGALIBS_i586 = # no i586 library yet |
|
480 |
||
481 |
_DGALIBS_amd64 = # no amd64 library yet |
|
482 |
||
13702 | 483 |
DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%) |
12892 | 484 |
|
13702 | 485 |
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
486 |
$(call install-file) |
13164 | 487 |
$(CHMOD) 755 $@ |
12892 | 488 |
|
13702 | 489 |
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
490 |
$(call install-file) |
13164 | 491 |
$(CHMOD) 755 $@ |
12892 | 492 |
|
13702 | 493 |
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so |
12892 | 494 |
$(MKDIR) -p $(@D) |
495 |
$(RM) $@ |
|
14231 | 496 |
$(LN) -s $(<F) $@ |
12892 | 497 |
|
498 |
COPY_FILES += $(DGALIBS) |
|
499 |
||
500 |
endif |
|
501 |
||
502 |
########################################################################################## |
|
503 |
||
13164 | 504 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 505 |
|
506 |
SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg |
|
507 |
SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg |
|
508 |
||
509 |
$(SUNPKCS11_CFG_DST) : $(SUNPKCS11_CFG_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
510 |
$(call install-file) |
12892 | 511 |
|
512 |
COPY_FILES += $(SUNPKCS11_CFG_DST) |
|
513 |
||
514 |
endif |
|
515 |
||
516 |
########################################################################################## |
|
517 |
||
518 |
ifndef OPENJDK |
|
13164 | 519 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 520 |
|
521 |
UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg |
|
522 |
UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg |
|
523 |
||
524 |
$(UCRYPTO_CFG_DST) : $(UCRYPTO_CFG_SRC) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
525 |
$(call install-file) |
12892 | 526 |
|
527 |
COPY_FILES += $(UCRYPTO_CFG_DST) |
|
528 |
||
529 |
endif |
|
530 |
endif |
|
531 |
||
532 |
########################################################################################## |
|
533 |
||
534 |
$(JDK_OUTPUTDIR)/lib/sound.properties : $(JDK_TOPDIR)/src/share/lib/sound.properties |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16507
diff
changeset
|
535 |
$(call install-file) |
12892 | 536 |
|
537 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties |
|
538 |
||
539 |
########################################################################################## |