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