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