author | sundar |
Tue, 25 Feb 2014 18:56:10 +0530 | |
changeset 23083 | 8c74590d5df1 |
parent 22607 | ba232b417248 |
child 22993 | a9adb24d0a02 |
permissions | -rw-r--r-- |
14231 | 1 |
# |
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
2 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
14231 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
24 |
# |
|
25 |
||
20203
2e0b3aab117a
8019219: Fix typo in jdk/makefiles "default" targets
ihse
parents:
19399
diff
changeset
|
26 |
default: all |
14231 | 27 |
|
28 |
include $(SPEC) |
|
29 |
include MakeBase.gmk |
|
30 |
include NativeCompilation.gmk |
|
31 |
||
32 |
# Setup the java compilers for the JDK build. |
|
33 |
include Setup.gmk |
|
34 |
||
15126
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14523
diff
changeset
|
35 |
# Prepare the find cache. Only used on windows. |
20547 | 36 |
$(eval $(call FillCacheFind, $(JDK_TOPDIR)/src/share/bin)) |
15126
bceb690ccf35
8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents:
14523
diff
changeset
|
37 |
|
14231 | 38 |
# Build tools |
39 |
include Tools.gmk |
|
40 |
||
20547 | 41 |
BUILD_LAUNCHERS = |
14231 | 42 |
|
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
43 |
# When building a legacy overlay image (on solaris 64 bit), the launchers |
14231 | 44 |
# need to be built with a different rpath and a different output dir. |
20547 | 45 |
ifeq ($(OVERLAY_IMAGES), true) |
46 |
ORIGIN_ROOT := /../.. |
|
47 |
OUTPUT_SUBDIR := $(OPENJDK_TARGET_CPU_ISADIR) |
|
14231 | 48 |
else |
20547 | 49 |
ORIGIN_ROOT := /.. |
14231 | 50 |
endif |
51 |
||
52 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
20547 | 53 |
ORIGIN_ARG := $(call SET_EXECUTABLE_ORIGIN) |
14231 | 54 |
else |
20884 | 55 |
ORIGIN_ARG := $(call SET_EXECUTABLE_ORIGIN,$(ORIGIN_ROOT)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/jli) |
14231 | 56 |
endif |
57 |
||
58 |
# |
|
59 |
# Applications expect to be able to link against libjawt without invoking |
|
60 |
# System.loadLibrary("jawt") first. This was the behaviour described in the |
|
61 |
# devloper documentation of JAWT and what worked with OpenJDK6. |
|
62 |
# |
|
20547 | 63 |
ifneq ($(findstring $(OPENJDK_TARGET_OS), linux solaris), ) |
20884 | 64 |
ORIGIN_ARG += $(call SET_EXECUTABLE_ORIGIN,$(ORIGIN_ROOT)/lib$(OPENJDK_TARGET_CPU_LIBDIR)) |
14231 | 65 |
endif |
66 |
||
67 |
define SetupLauncher |
|
20547 | 68 |
# TODO: Fix mapfile on solaris. Won't work with ld as linker. |
69 |
# Parameter 1 is the name of the launcher (java, javac, jar...) |
|
70 |
# Parameter 2 is extra CFLAGS |
|
71 |
# Parameter 3 is extra LDFLAGS |
|
72 |
# Parameter 4 is extra LDFLAGS_SUFFIX_posix |
|
73 |
# Parameter 5 is extra LDFLAGS_SUFFIX_windows |
|
74 |
# Parameter 6 is optional Windows JLI library (full path) |
|
75 |
# Parameter 7 is optional Windows resource (RC) flags |
|
76 |
# Parameter 8 is optional Windows version resource file (.rc) |
|
77 |
# Parameter 9 is different output dir |
|
78 |
# Parameter 10 if set, link statically with c runtime on windows. |
|
79 |
# Parameter 11 if set, override plist file on macosx. |
|
14231 | 80 |
|
20547 | 81 |
$1_WINDOWS_JLI_LIB := $(JDK_OUTPUTDIR)/objs/libjli/jli.lib |
82 |
ifneq ($6, ) |
|
83 |
$1_WINDOWS_JLI_LIB := $6 |
|
84 |
endif |
|
85 |
$1_VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc |
|
86 |
ifneq ($8, ) |
|
87 |
$1_VERSION_INFO_RESOURCE := $8 |
|
88 |
endif |
|
14231 | 89 |
|
20547 | 90 |
$1_LDFLAGS := $3 |
91 |
$1_LDFLAGS_SUFFIX := |
|
92 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
93 |
$1_PLIST_FILE := Info-cmdline.plist |
|
94 |
ifneq ($(11), ) |
|
95 |
$1_PLIST_FILE := $(11) |
|
96 |
ifneq ($$(findstring privileged, $$($1_PLIST_FILE)), ) |
|
97 |
$1_CODESIGN := true |
|
98 |
endif |
|
14231 | 99 |
endif |
100 |
||
20547 | 101 |
$1_LDFLAGS += -Wl,-all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \ |
102 |
-framework Cocoa -framework Security -framework ApplicationServices \ |
|
103 |
-sectcreate __TEXT __info_plist $(JDK_TOPDIR)/src/macosx/lib/$$($1_PLIST_FILE) |
|
104 |
$1_LDFLAGS_SUFFIX += -pthread |
|
105 |
endif |
|
106 |
||
22594 | 107 |
ifeq ($(OPENJDK_TARGET_OS), aix) |
108 |
$1_LDFLAGS_SUFFIX += -L$(JDK_OUTPUTDIR)/objs -ljli_static |
|
109 |
endif |
|
110 |
||
20547 | 111 |
ifeq ($(USE_EXTERNAL_LIBZ), true) |
112 |
$1_LDFLAGS_SUFFIX += -lz |
|
113 |
endif |
|
114 |
||
115 |
$1_OUTPUT_DIR_ARG := $9 |
|
116 |
ifeq (, $$($1_OUTPUT_DIR_ARG)) |
|
117 |
$1_OUTPUT_DIR_ARG := $(JDK_OUTPUTDIR)/bin |
|
118 |
endif |
|
119 |
||
120 |
# TODO: maybe it's better to move this if-statement out of this function |
|
121 |
ifeq ($1, java) |
|
122 |
$1_OPTIMIZATION_ARG := HIGH |
|
123 |
$1_LDFLAGS_solaris := -R$(OPENWIN_HOME)/lib$(OPENJDK_TARGET_CPU_ISADIR) |
|
124 |
else |
|
125 |
$1_OPTIMIZATION_ARG := LOW |
|
126 |
endif |
|
127 |
||
128 |
$1_CFLAGS := $(CFLAGS_JDKEXE) |
|
129 |
ifeq ($(10), true) |
|
130 |
$1_CFLAGS := $(filter-out -MD, $(CFLAGS_JDKEXE)) |
|
131 |
endif |
|
132 |
||
22594 | 133 |
# The linker on older SuSE distros (e.g. on SLES 10) complains with: |
134 |
# "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable." |
|
135 |
# if feeded with a version script which contains named tags. |
|
136 |
ifeq ($(USING_BROKEN_SUSE_LD),yes) |
|
22598 | 137 |
ifneq ($(wildcard $(JDK_TOPDIR)/make/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU).anonymous), ) |
138 |
$1_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU).anonymous |
|
14231 | 139 |
else |
22594 | 140 |
$1_MAPFILE := |
14231 | 141 |
endif |
20547 | 142 |
else |
22598 | 143 |
ifneq ($(wildcard $(JDK_TOPDIR)/make/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU)), ) |
144 |
$1_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/launchers/mapfile-$(OPENJDK_TARGET_CPU) |
|
22594 | 145 |
else |
146 |
$1_MAPFILE := |
|
147 |
endif |
|
20547 | 148 |
endif |
14231 | 149 |
|
20547 | 150 |
$(call SetupNativeCompilation,BUILD_LAUNCHER_$1, \ |
151 |
SRC := $(JDK_TOPDIR)/src/share/bin, \ |
|
152 |
INCLUDE_FILES := main.c, \ |
|
153 |
LANG := C, \ |
|
154 |
OPTIMIZATION := $$($1_OPTIMIZATION_ARG), \ |
|
155 |
CFLAGS := $$($1_CFLAGS) \ |
|
156 |
-I$(JDK_TOPDIR)/src/share/bin \ |
|
157 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin \ |
|
158 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS)/bin \ |
|
159 |
-DFULL_VERSION='"$(FULL_VERSION)"' \ |
|
160 |
-DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \ |
|
161 |
-DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \ |
|
162 |
-DLIBARCHNAME='"$(OPENJDK_TARGET_CPU_LEGACY)"' \ |
|
163 |
-DLAUNCHER_NAME='"$(LAUNCHER_NAME)"' \ |
|
164 |
-DPROGNAME='"$1"' $(DPACKAGEPATH) \ |
|
165 |
$2, \ |
|
166 |
CFLAGS_linux := -fPIC, \ |
|
167 |
CFLAGS_solaris := -KPIC -DHAVE_GETHRTIME, \ |
|
168 |
LDFLAGS := $(LDFLAGS_JDKEXE) \ |
|
169 |
$(ORIGIN_ARG) \ |
|
170 |
$$($1_LDFLAGS), \ |
|
171 |
LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_NAME,$1), \ |
|
21606 | 172 |
LDFLAGS_linux := -lpthread \ |
20547 | 173 |
$(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \ |
174 |
LDFLAGS_solaris := $$($1_LDFLAGS_solaris) \ |
|
175 |
$(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \ |
|
176 |
MAPFILE := $$($1_MAPFILE), \ |
|
177 |
LDFLAGS_SUFFIX := $(LDFLAGS_JDKEXE_SUFFIX) $$($1_LDFLAGS_SUFFIX), \ |
|
178 |
LDFLAGS_SUFFIX_posix := $4, \ |
|
179 |
LDFLAGS_SUFFIX_windows := $$($1_WINDOWS_JLI_LIB) \ |
|
180 |
$(JDK_OUTPUTDIR)/objs/libjava/java.lib advapi32.lib $5, \ |
|
181 |
LDFLAGS_SUFFIX_linux := -L$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/jli -ljli $(LIBDL) -lc, \ |
|
182 |
LDFLAGS_SUFFIX_solaris := -L$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/jli -ljli -lthread $(LIBDL) -lc, \ |
|
183 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/$1_objs$(OUTPUT_SUBDIR), \ |
|
184 |
OUTPUT_DIR := $$($1_OUTPUT_DIR_ARG)$(OUTPUT_SUBDIR), \ |
|
185 |
PROGRAM := $1, \ |
|
186 |
DEBUG_SYMBOLS := true, \ |
|
187 |
VERSIONINFO_RESOURCE := $$($1_VERSION_INFO_RESOURCE), \ |
|
188 |
RC_FLAGS := $(RC_FLAGS) \ |
|
189 |
-D "JDK_FNAME=$1$(EXE_SUFFIX)" \ |
|
190 |
-D "JDK_INTERNAL_NAME=$1" \ |
|
191 |
-D "JDK_FTYPE=0x1L" \ |
|
192 |
$7, \ |
|
193 |
MANIFEST := $(JDK_TOPDIR)/src/windows/resource/java.manifest, \ |
|
194 |
CODESIGN := $$($1_CODESIGN)) |
|
14231 | 195 |
|
20547 | 196 |
BUILD_LAUNCHERS += $$(BUILD_LAUNCHER_$1) |
14231 | 197 |
|
22594 | 198 |
ifneq (,$(filter $(OPENJDK_TARGET_OS), macosx aix)) |
20547 | 199 |
$$(BUILD_LAUNCHER_$1): $(JDK_OUTPUTDIR)/objs/libjli_static.a |
200 |
endif |
|
14231 | 201 |
|
20547 | 202 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
203 |
$$(BUILD_LAUNCHER_$1): $(JDK_OUTPUTDIR)/objs/libjava/java.lib \ |
|
204 |
$$($1_WINDOWS_JLI_LIB) |
|
205 |
endif |
|
14231 | 206 |
endef |
207 |
||
208 |
########################################################################################## |
|
209 |
||
20547 | 210 |
XLIBS := $(X_LIBS) -lX11 |
211 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
212 |
DPACKAGEPATH := -DPACKAGE_PATH='"$(PACKAGE_PATH)"' |
|
213 |
XLIBS := |
|
14231 | 214 |
endif |
215 |
||
216 |
ifdef OPENJDK |
|
20547 | 217 |
JAVA_RC_FLAGS += -i "$(JDK_TOPDIR)/src/windows/resource/icons" |
14231 | 218 |
else |
20547 | 219 |
JAVA_RC_FLAGS += -i "$(JDK_TOPDIR)/src/closed/windows/native/sun/windows" |
14231 | 220 |
endif |
221 |
||
222 |
# On windows, the debuginfo files get the same name as for java.dll. Build |
|
223 |
# into another dir and copy selectively so debuginfo for java.dll isn't |
|
224 |
# overwritten. |
|
20547 | 225 |
$(eval $(call SetupLauncher,java, \ |
226 |
-DEXPAND_CLASSPATH_WILDCARDS,,,user32.lib comctl32.lib, \ |
|
227 |
$(JDK_OUTPUTDIR)/objs/jli_static.lib, $(JAVA_RC_FLAGS), \ |
|
228 |
$(JDK_TOPDIR)/src/windows/resource/java.rc, $(JDK_OUTPUTDIR)/objs/java_objs,true)) |
|
14231 | 229 |
|
230 |
$(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java$(EXE_SUFFIX): $(BUILD_LAUNCHER_java) |
|
231 |
$(MKDIR) -p $(@D) |
|
232 |
$(RM) $@ |
|
233 |
$(CP) $(JDK_OUTPUTDIR)/objs/java_objs$(OUTPUT_SUBDIR)/java$(EXE_SUFFIX) $@ |
|
234 |
||
235 |
BUILD_LAUNCHERS += $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java$(EXE_SUFFIX) |
|
236 |
||
20547 | 237 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
238 |
$(eval $(call SetupLauncher,javaw, \ |
|
239 |
-DJAVAW -DEXPAND_CLASSPATH_WILDCARDS,,,user32.lib comctl32.lib, \ |
|
240 |
$(JDK_OUTPUTDIR)/objs/jli_static.lib, $(JAVA_RC_FLAGS), \ |
|
241 |
$(JDK_TOPDIR)/src/windows/resource/java.rc,,true)) |
|
14231 | 242 |
endif |
243 |
||
244 |
||
245 |
ifndef BUILD_HEADLESS_ONLY |
|
20547 | 246 |
$(eval $(call SetupLauncher,appletviewer, \ |
247 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.applet.Main"$(COMMA) }',, \ |
|
248 |
$(XLIBS))) |
|
14231 | 249 |
endif |
250 |
||
20547 | 251 |
$(eval $(call SetupLauncher,extcheck, \ |
14231 | 252 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.extcheck.Main"$(COMMA) }')) |
253 |
||
20547 | 254 |
$(eval $(call SetupLauncher,idlj, \ |
14231 | 255 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.corba.se.idl.toJavaPortable.Compile"$(COMMA) }')) |
256 |
||
20547 | 257 |
$(eval $(call SetupLauncher,jar, \ |
14231 | 258 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jar.Main"$(COMMA) }')) |
259 |
||
20547 | 260 |
$(eval $(call SetupLauncher,jarsigner, \ |
14523
643702cd3aa8
8003960: build-infra: Jarsigner launcher has wrong classname
erikj
parents:
14235
diff
changeset
|
261 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.tools.jarsigner.Main"$(COMMA) }')) |
14231 | 262 |
|
20547 | 263 |
$(eval $(call SetupLauncher,javac, \ |
14231 | 264 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
265 |
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \ |
|
266 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javac.Main"$(COMMA) }')) |
|
267 |
||
20547 | 268 |
ifeq ($(ENABLE_SJAVAC), yes) |
269 |
$(eval $(call SetupLauncher,sjavac, \ |
|
270 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
|
271 |
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \ |
|
272 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.sjavac.Main"$(COMMA) }')) |
|
14231 | 273 |
endif |
274 |
||
20547 | 275 |
$(eval $(call SetupLauncher,javadoc, \ |
14231 | 276 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
277 |
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \ |
|
278 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javadoc.Main"$(COMMA) }')) |
|
279 |
||
20547 | 280 |
$(eval $(call SetupLauncher,javah, \ |
14231 | 281 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
282 |
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \ |
|
283 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javah.Main"$(COMMA) }')) |
|
284 |
||
20547 | 285 |
$(eval $(call SetupLauncher,javap, \ |
14231 | 286 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
287 |
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \ |
|
288 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javap.Main"$(COMMA) }')) |
|
289 |
||
20547 | 290 |
$(eval $(call SetupLauncher,jdeps, \ |
14994
a544909d1d1c
8003562: Provide a CLI tool to analyze class dependencies
mchung
parents:
14523
diff
changeset
|
291 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
a544909d1d1c
8003562: Provide a CLI tool to analyze class dependencies
mchung
parents:
14523
diff
changeset
|
292 |
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \ |
a544909d1d1c
8003562: Provide a CLI tool to analyze class dependencies
mchung
parents:
14523
diff
changeset
|
293 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.jdeps.Main"$(COMMA) }')) |
a544909d1d1c
8003562: Provide a CLI tool to analyze class dependencies
mchung
parents:
14523
diff
changeset
|
294 |
|
20547 | 295 |
BUILD_LAUNCHER_jconsole_CFLAGS_windows := -DJAVAW |
296 |
BUILD_LAUNCHER_jconsole_LDFLAGS_windows := user32.lib |
|
14231 | 297 |
|
20547 | 298 |
$(eval $(call SetupLauncher,jconsole, \ |
14231 | 299 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "-J-Djconsole.showOutputViewer"$(COMMA) "sun.tools.jconsole.JConsole"$(COMMA) }' \ |
300 |
-DAPP_CLASSPATH='{ "/lib/jconsole.jar"$(COMMA) "/lib/tools.jar"$(COMMA) "/classes" }')) |
|
301 |
||
20547 | 302 |
$(eval $(call SetupLauncher,jdb, \ |
14231 | 303 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.example.debug.tty.TTY"$(COMMA) }' \ |
304 |
-DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }')) |
|
305 |
||
20547 | 306 |
$(eval $(call SetupLauncher,jhat, \ |
14231 | 307 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.hat.Main"$(COMMA) }')) |
308 |
||
20547 | 309 |
$(eval $(call SetupLauncher,jinfo, \ |
14231 | 310 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \ |
20547 | 311 |
"-J-Dsun.jvm.hotspot.debugger.useProcDebugger"$(COMMA) \ |
312 |
"-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger"$(COMMA) \ |
|
313 |
"sun.tools.jinfo.JInfo"$(COMMA) }' \ |
|
14231 | 314 |
-DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \ |
315 |
,,,,,,,,,Info-privileged.plist)) |
|
316 |
||
20547 | 317 |
$(eval $(call SetupLauncher,jmap, \ |
14231 | 318 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \ |
20547 | 319 |
"-J-Dsun.jvm.hotspot.debugger.useProcDebugger"$(COMMA) \ |
320 |
"-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger"$(COMMA) \ |
|
321 |
"sun.tools.jmap.JMap"$(COMMA) }' \ |
|
14231 | 322 |
-DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \ |
323 |
,,,,,,,,,Info-privileged.plist)) |
|
324 |
||
20547 | 325 |
$(eval $(call SetupLauncher,jps, \ |
14231 | 326 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jps.Jps"$(COMMA) }')) |
327 |
||
20547 | 328 |
$(eval $(call SetupLauncher,jrunscript, \ |
14231 | 329 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.script.shell.Main"$(COMMA) }')) |
330 |
||
20547 | 331 |
$(eval $(call SetupLauncher,jjs, \ |
332 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "jdk.nashorn.tools.Shell"$(COMMA) }')) |
|
16029 | 333 |
|
20547 | 334 |
$(eval $(call SetupLauncher,jsadebugd, \ |
14231 | 335 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.jvm.hotspot.jdi.SADebugServer"$(COMMA) }' \ |
336 |
-DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \ |
|
337 |
,,,,,,,,,Info-privileged.plist)) |
|
338 |
||
20547 | 339 |
$(eval $(call SetupLauncher,jstack, \ |
14231 | 340 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \ |
20547 | 341 |
"-J-Dsun.jvm.hotspot.debugger.useProcDebugger"$(COMMA) \ |
342 |
"-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger"$(COMMA) \ |
|
343 |
"sun.tools.jstack.JStack"$(COMMA) }' \ |
|
14231 | 344 |
-DAPP_CLASSPATH='{ "/lib/tools.jar"$(COMMA) "/lib/sa-jdi.jar"$(COMMA) "/classes" }' \ |
345 |
,,,,,,,,,Info-privileged.plist)) |
|
346 |
||
20547 | 347 |
$(eval $(call SetupLauncher,jstat, \ |
14231 | 348 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jstat.Jstat"$(COMMA) }')) |
349 |
||
20547 | 350 |
$(eval $(call SetupLauncher,jstatd, \ |
14231 | 351 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jstatd.Jstatd"$(COMMA) }')) |
352 |
||
20547 | 353 |
$(eval $(call SetupLauncher,keytool, \ |
14235 | 354 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.tools.keytool.Main"$(COMMA) }')) |
14231 | 355 |
|
20547 | 356 |
$(eval $(call SetupLauncher,native2ascii, \ |
14231 | 357 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.native2ascii.Main"$(COMMA) }')) |
358 |
||
359 |
ifndef BUILD_HEADLESS_ONLY |
|
20547 | 360 |
$(eval $(call SetupLauncher,policytool, \ |
361 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.tools.policytool.PolicyTool"$(COMMA) }',, \ |
|
362 |
$(XLIBS))) |
|
14231 | 363 |
endif |
364 |
||
20547 | 365 |
$(eval $(call SetupLauncher,rmic, \ |
14231 | 366 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
367 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.rmic.Main"$(COMMA) }')) |
|
368 |
||
20547 | 369 |
$(eval $(call SetupLauncher,schemagen, \ |
14231 | 370 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.jxc.SchemaGenerator"$(COMMA) }')) |
371 |
||
20547 | 372 |
$(eval $(call SetupLauncher,serialver, \ |
14231 | 373 |
-DEXPAND_CLASSPATH_WILDCARDS \ |
374 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.serialver.SerialVer"$(COMMA) }')) |
|
375 |
||
20547 | 376 |
$(eval $(call SetupLauncher,xjc, \ |
14231 | 377 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.xjc.Driver"$(COMMA) }')) |
378 |
||
20547 | 379 |
$(eval $(call SetupLauncher,wsgen, \ |
14231 | 380 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.ws.WsGen"$(COMMA) }')) |
381 |
||
20547 | 382 |
$(eval $(call SetupLauncher,wsimport, \ |
14231 | 383 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.internal.ws.WsImport"$(COMMA) }')) |
384 |
||
20547 | 385 |
$(eval $(call SetupLauncher,orbd, \ |
386 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \ |
|
387 |
"-J-Dcom.sun.CORBA.activation.DbDir=./orb.db"$(COMMA) \ |
|
388 |
"-J-Dcom.sun.CORBA.activation.Port=1049"$(COMMA) \ |
|
389 |
"-J-Dcom.sun.CORBA.POA.ORBServerId=1"$(COMMA) \ |
|
390 |
"com.sun.corba.se.impl.activation.ORBD"$(COMMA) }')) |
|
14231 | 391 |
|
20547 | 392 |
$(eval $(call SetupLauncher,servertool, \ |
14231 | 393 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.corba.se.impl.activation.ServerTool"$(COMMA) }')) |
394 |
||
20547 | 395 |
$(eval $(call SetupLauncher,tnameserv, \ |
396 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) \ |
|
397 |
"-J-Dcom.sun.CORBA.activation.DbDir=./orb.db"$(COMMA) \ |
|
398 |
"-J-Djava.util.logging.LoggingPermission=contol"$(COMMA) \ |
|
399 |
"-J-Dcom.sun.CORBA.POA.ORBServerId=1"$(COMMA) \ |
|
400 |
"com.sun.corba.se.impl.naming.cosnaming.TransientNameServer"$(COMMA) }')) |
|
14231 | 401 |
|
20547 | 402 |
$(eval $(call SetupLauncher,pack200, \ |
21820
701e0b95a267
8027900: pack200 option is broken due to the incorrect makefile definition for its driver
kizune
parents:
21805
diff
changeset
|
403 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.java.util.jar.pack.Driver"$(COMMA) }')) |
14231 | 404 |
|
20547 | 405 |
$(eval $(call SetupLauncher,rmid, \ |
406 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.server.Activation"$(COMMA) }')) |
|
14231 | 407 |
|
20547 | 408 |
$(eval $(call SetupLauncher,rmiregistry, \ |
409 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.registry.RegistryImpl"$(COMMA) }')) |
|
14231 | 410 |
|
20547 | 411 |
$(eval $(call SetupLauncher,jcmd, \ |
412 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.jcmd.JCmd"$(COMMA) }')) |
|
14231 | 413 |
|
20547 | 414 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
415 |
$(eval $(call SetupLauncher,kinit, \ |
|
416 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.krb5.internal.tools.Kinit"$(COMMA) }')) |
|
14231 | 417 |
|
20547 | 418 |
$(eval $(call SetupLauncher,klist, \ |
419 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.krb5.internal.tools.Klist"$(COMMA) }')) |
|
14231 | 420 |
|
20547 | 421 |
$(eval $(call SetupLauncher,ktab, \ |
422 |
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.security.krb5.internal.tools.Ktab"$(COMMA) }')) |
|
14231 | 423 |
endif |
424 |
||
425 |
########################################################################################## |
|
426 |
# The order of the object files on the link command line affects the size of the resulting |
|
427 |
# binary (at least on linux) which causes the size to differ between old and new build. |
|
428 |
ifeq ($(USE_EXTERNAL_LIBZ), true) |
|
20547 | 429 |
UNPACKEXE_CFLAGS := -DSYSTEM_ZLIB |
430 |
UNPACKEXE_ZIPOBJS := -lz |
|
14231 | 431 |
else |
20547 | 432 |
UNPACKEXE_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
433 |
UNPACKEXE_ZIPOBJS := $(JDK_OUTPUTDIR)/objs/libzip/zcrc32$(OBJ_SUFFIX) \ |
|
434 |
$(JDK_OUTPUTDIR)/objs/libzip/deflate$(OBJ_SUFFIX) \ |
|
435 |
$(JDK_OUTPUTDIR)/objs/libzip/trees$(OBJ_SUFFIX) \ |
|
436 |
$(JDK_OUTPUTDIR)/objs/libzip/zadler32$(OBJ_SUFFIX) \ |
|
437 |
$(JDK_OUTPUTDIR)/objs/libzip/compress$(OBJ_SUFFIX) \ |
|
438 |
$(JDK_OUTPUTDIR)/objs/libzip/zutil$(OBJ_SUFFIX) \ |
|
439 |
$(JDK_OUTPUTDIR)/objs/libzip/inflate$(OBJ_SUFFIX) \ |
|
440 |
$(JDK_OUTPUTDIR)/objs/libzip/infback$(OBJ_SUFFIX) \ |
|
441 |
$(JDK_OUTPUTDIR)/objs/libzip/inftrees$(OBJ_SUFFIX) \ |
|
442 |
$(JDK_OUTPUTDIR)/objs/libzip/inffast$(OBJ_SUFFIX) |
|
14231 | 443 |
|
444 |
endif |
|
445 |
||
446 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
20547 | 447 |
UNPACKEXE_CFLAGS += -xregs=no%appl |
448 |
UNPACKEXE_LDFLAGS_solaris += -xmemalign=4s |
|
14231 | 449 |
endif |
450 |
||
20547 | 451 |
UNPACKEXE_LANG := C |
452 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
453 |
UNPACKEXE_LANG := C++ |
|
14231 | 454 |
endif |
22272
4cbb04a368cb
8025936: Windows .pdb and .map files does not have proper dependencies setup
erikj
parents:
21820
diff
changeset
|
455 |
UNPACKEXE_DEBUG_SYMBOLS := true |
14231 | 456 |
# On windows, unpack200 is linked completely differently to all other |
457 |
# executables, using the compiler with the compiler arguments. |
|
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
458 |
# It's also linked incrementally, producing a .ilk file that needs to |
14231 | 459 |
# be kept away. |
20547 | 460 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
461 |
BUILD_UNPACKEXE_LDEXE := $(CC) |
|
462 |
EXE_OUT_OPTION_save := $(EXE_OUT_OPTION) |
|
463 |
EXE_OUT_OPTION := -Fe |
|
22272
4cbb04a368cb
8025936: Windows .pdb and .map files does not have proper dependencies setup
erikj
parents:
21820
diff
changeset
|
464 |
# With the current way unpack200 is built, debug symbols aren't supported |
4cbb04a368cb
8025936: Windows .pdb and .map files does not have proper dependencies setup
erikj
parents:
21820
diff
changeset
|
465 |
# anyway. |
4cbb04a368cb
8025936: Windows .pdb and .map files does not have proper dependencies setup
erikj
parents:
21820
diff
changeset
|
466 |
UNPACKEXE_DEBUG_SYMBOLS := |
14231 | 467 |
endif |
22587
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
468 |
|
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
469 |
# The linker on older SuSE distros (e.g. on SLES 10) complains with: |
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
470 |
# "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable." |
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
471 |
# if feeded with a version script which contains named tags. |
22594 | 472 |
ifeq ($(USING_BROKEN_SUSE_LD), yes) |
22598 | 473 |
UNPACK_MAPFILE = $(JDK_TOPDIR)/make/mapfiles/libunpack/mapfile-vers-unpack200.anonymous |
22587
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
474 |
else |
22598 | 475 |
UNPACK_MAPFILE = $(JDK_TOPDIR)/make/mapfiles/libunpack/mapfile-vers-unpack200 |
22587
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
476 |
endif |
28bea2d65a18
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17732
diff
changeset
|
477 |
|
20547 | 478 |
$(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \ |
479 |
SRC := $(JDK_TOPDIR)/src/share/native/com/sun/java/util/jar/pack, \ |
|
480 |
EXCLUDE_FILES := jni.cpp, \ |
|
481 |
LANG := $(UNPACKEXE_LANG), \ |
|
482 |
OPTIMIZATION := LOW, \ |
|
483 |
CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) \ |
|
484 |
-DFULL, \ |
|
485 |
CFLAGS_release := -DPRODUCT, \ |
|
486 |
CFLAGS_linux := -fPIC, \ |
|
487 |
CFLAGS_solaris := -KPIC, \ |
|
488 |
CFLAGS_macosx := -fPIC, \ |
|
22594 | 489 |
MAPFILE := $(UNPACK_MAPFILE),\ |
20547 | 490 |
LDFLAGS := $(UNPACKEXE_ZIPOBJS), \ |
491 |
LDFLAGS_windows := $(CXXFLAGS_JDKEXE), \ |
|
492 |
LDFLAGS_posix := $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \ |
|
493 |
$(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)unpack$(SHARED_LIBRARY_SUFFIX)) \ |
|
494 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
495 |
LDFLAGS_linux := -lc, \ |
|
496 |
LDFLAGS_solaris := $(UNPACKEXE_LDFLAGS_solaris) -lc, \ |
|
497 |
LDFLAGS_SUFFIX := $(LIBCXX), \ |
|
498 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/unpackexe$(OUTPUT_SUBDIR), \ |
|
499 |
OUTPUT_DIR := $(JDK_OUTPUTDIR)/objs/unpackexe$(OUTPUT_SUBDIR), \ |
|
500 |
PROGRAM := unpack200, \ |
|
501 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
502 |
RC_FLAGS := $(RC_FLAGS) \ |
|
503 |
-D "JDK_FNAME=unpack200.exe" \ |
|
504 |
-D "JDK_INTERNAL_NAME=unpack200" \ |
|
505 |
-D "JDK_FTYPE=0x1L", \ |
|
22272
4cbb04a368cb
8025936: Windows .pdb and .map files does not have proper dependencies setup
erikj
parents:
21820
diff
changeset
|
506 |
DEBUG_SYMBOLS := $(UNPACKEXE_DEBUG_SYMBOLS), \ |
20547 | 507 |
MANIFEST := $(JDK_TOPDIR)/src/windows/resource/unpack200_proto.exe.manifest)) |
14231 | 508 |
|
20547 | 509 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
510 |
EXE_OUT_OPTION := $(EXE_OUT_OPTION_save) |
|
14231 | 511 |
endif |
512 |
||
513 |
ifneq ($(USE_EXTERNAL_LIBZ), true) |
|
514 |
||
20547 | 515 |
$(BUILD_UNPACKEXE): $(UNPACKEXE_ZIPOBJS) |
14231 | 516 |
|
517 |
endif |
|
518 |
||
519 |
# Build into object dir and copy executable afterwards to avoid .ilk file in |
|
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
520 |
# image. The real fix would be clean up linking of unpack200 using |
14231 | 521 |
# -link -incremental:no |
522 |
# like all other launchers. |
|
523 |
$(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/unpack200$(EXE_SUFFIX): $(BUILD_UNPACKEXE) |
|
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16029
diff
changeset
|
524 |
$(call install-file) |
14231 | 525 |
|
526 |
BUILD_LAUNCHERS += $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/unpack200$(EXE_SUFFIX) |
|
527 |
||
528 |
########################################################################################## |
|
529 |
||
530 |
||
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
531 |
BUILD_JEXEC := |
14231 | 532 |
BUILD_JEXEC_SRC := |
533 |
BUILD_JEXEC_INC := |
|
534 |
BUILD_JEXEC_DST_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
|
535 |
||
536 |
# |
|
537 |
# UNHANDLED: |
|
538 |
# - COMPILE_APPROACH = normal |
|
539 |
# |
|
540 |
||
541 |
# |
|
542 |
# jdk/make/java/Makefile |
|
543 |
# |
|
544 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
20547 | 545 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) |
546 |
BUILD_JEXEC := 1 |
|
547 |
endif |
|
14231 | 548 |
endif |
549 |
||
550 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
20547 | 551 |
BUILD_JEXEC := 1 |
14231 | 552 |
endif # OPENJDK_TARGET_OS |
553 |
||
554 |
# |
|
555 |
# jdk/make/java/jexec/Makefile |
|
556 |
# |
|
557 |
ifeq ($(BUILD_JEXEC), 1) |
|
558 |
||
20547 | 559 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
560 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
561 |
BUILD_JEXEC_SRC := $(JDK_TOPDIR)/src/macosx/bin |
|
562 |
else |
|
563 |
BUILD_JEXEC_SRC := $(JDK_TOPDIR)/src/solaris/bin |
|
564 |
endif |
|
14231 | 565 |
|
20547 | 566 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
567 |
BUILD_JEXEC_DST_DIR := $(JDK_OUTPUTDIR)/lib |
|
568 |
BUILD_JEXEC_INC += -I$(JDK_TOPDIR)/src/share/bin |
|
569 |
endif |
|
14231 | 570 |
endif |
571 |
||
572 |
# |
|
573 |
# Note that the two Makefile's seems to contradict each other, |
|
20547 | 574 |
# and that src/macosx/bin/jexec.c seems unused |
14231 | 575 |
# |
20547 | 576 |
ifneq ($(BUILD_JEXEC_SRC), ) |
577 |
$(eval $(call SetupNativeCompilation,BUILD_JEXEC, \ |
|
578 |
SRC := $(BUILD_JEXEC_SRC), \ |
|
579 |
INCLUDE_FILES := jexec.c, \ |
|
580 |
LANG := C, \ |
|
581 |
OPTIMIZATION := LOW, \ |
|
582 |
CFLAGS := $(CFLAGS_JDKEXE) \ |
|
583 |
$(BUILD_JEXEC_INC), \ |
|
584 |
CFLAGS_linux := -fPIC, \ |
|
585 |
CFLAGS_solaris := -KPIC, \ |
|
586 |
LDFLAGS := $(LDFLAGS_JDKEXE) \ |
|
587 |
$(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \ |
|
588 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jexec_obj, \ |
|
589 |
OUTPUT_DIR := $(BUILD_JEXEC_DST_DIR), \ |
|
590 |
DEBUG_SYMBOLS := true, \ |
|
591 |
PROGRAM := jexec)) |
|
14231 | 592 |
|
20547 | 593 |
BUILD_LAUNCHERS += $(BUILD_JEXEC) |
14231 | 594 |
endif |
595 |
||
596 |
########################################################################################## |
|
597 |
||
598 |
# |
|
599 |
# The java-rmi.cgi script in bin/ only gets delivered in certain situations |
|
600 |
# |
|
20547 | 601 |
JAVA_RMI_CGI := $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java-rmi.cgi |
14231 | 602 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
603 |
BUILD_LAUNCHERS += $(JAVA_RMI_CGI) |
|
604 |
endif |
|
605 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
20894 | 606 |
BUILD_LAUNCHERS += $(JAVA_RMI_CGI) |
14231 | 607 |
endif |
608 |
||
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
609 |
# TODO: |
14231 | 610 |
# On windows java-rmi.cgi shouldn't be bundled since Java 1.2, but has been built all |
611 |
# this time anyway. Since jdk6, it has been built from the wrong source and resulted |
|
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
612 |
# in a (almost) copy of the standard java launcher named "java-rmi.exe" ending up in |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
613 |
# the final images bin dir. This weird behavior is mimicked here in the converted |
14231 | 614 |
# makefiles for now. Should probably just be deleted. |
615 |
# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6512052 |
|
20547 | 616 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
617 |
$(eval $(call SetupLauncher,java-rmi, , \ |
|
21805 | 618 |
$(call SET_SHARED_LIBRARY_MAPFILE,$(JDK_TOPDIR)/make/java/main/java/mapfile-$(OPENJDK_TARGET_CPU)))) |
14231 | 619 |
else |
20547 | 620 |
$(JAVA_RMI_CGI): $(JDK_TOPDIR)/src/solaris/bin/java-rmi.cgi.sh |
16636
1cc691bcfe50
8008373: JFR JTReg tests fail with CompilationError on MacOSX; missing '._sunec.jar'
erikj
parents:
16029
diff
changeset
|
621 |
$(call install-file) |
14231 | 622 |
$(CHMOD) a+x $@ |
623 |
endif |
|
624 |
||
625 |
########################################################################################## |
|
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
626 |
|
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
627 |
BUILD_JSPAWNHELPER := |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
628 |
BUILD_JSPAWNHELPER_SRC := $(JDK_TOPDIR)/src/solaris/native/java/lang |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
629 |
BUILD_JSPAWNHELPER_DST_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
630 |
LINK_JSPAWNHELPER_OBJECTS := $(JDK_OUTPUTDIR)/objs/libjava/childproc.o |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
631 |
LINK_JSPAWNHELPER_FLAGS := |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
632 |
|
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
633 |
ifneq ($(findstring $(OPENJDK_TARGET_OS), macosx solaris aix), ) |
20547 | 634 |
BUILD_JSPAWNHELPER := 1 |
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
635 |
endif |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
636 |
|
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
637 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
20547 | 638 |
BUILD_JSPAWNHELPER_DST_DIR := $(JDK_OUTPUTDIR)/lib |
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
639 |
endif |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
640 |
|
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
641 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
22595
aaa6b141196c
8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents:
22594
diff
changeset
|
642 |
LINK_JSPAWNHELPER_FLAGS += $(COMPILER_TARGET_BITS_FLAG)64 |
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
643 |
endif |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
644 |
|
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
645 |
ifeq ($(BUILD_JSPAWNHELPER), 1) |
20547 | 646 |
$(eval $(call SetupNativeCompilation,BUILD_JSPAWNHELPER, \ |
647 |
SRC := $(BUILD_JSPAWNHELPER_SRC), \ |
|
648 |
INCLUDE_FILES := jspawnhelper.c, \ |
|
649 |
LANG := C, \ |
|
650 |
OPTIMIZATION := LOW, \ |
|
651 |
CFLAGS := $(CFLAGS_JDKEXE), \ |
|
652 |
LDFLAGS := $(LDFLAGS_JDKEXE) $(LINK_JSPAWNHELPER_FLAGS), \ |
|
653 |
LDFLAGS_SUFFIX := $(LINK_JSPAWNHELPER_OBJECTS), \ |
|
654 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jspawnhelper, \ |
|
655 |
OUTPUT_DIR := $(BUILD_JSPAWNHELPER_DST_DIR), \ |
|
656 |
PROGRAM := jspawnhelper)) |
|
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
657 |
|
20547 | 658 |
$(BUILD_JSPAWNHELPER): $(LINK_JSPAWNHELPER_OBJECTS) |
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
659 |
|
20547 | 660 |
BUILD_LAUNCHERS += $(BUILD_JSPAWNHELPER) |
19399
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
661 |
endif |
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
662 |
|
e2e5122cd62e
5049299: (process) Use posix_spawn, not fork, on S10 to avoid swap exhaustion
robm
parents:
17732
diff
changeset
|
663 |
########################################################################################## |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
664 |
# jabswitch |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
665 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
666 |
ifndef OPENJDK |
20547 | 667 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
668 |
|
20547 | 669 |
$(eval $(call SetupNativeCompilation,BUILD_JABSWITCH, \ |
670 |
SRC := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge, \ |
|
671 |
INCLUDE_FILES := jabswitch.cpp, \ |
|
672 |
LANG := C++, \ |
|
673 |
CFLAGS := $(filter-out -Zc:wchar_t-, $(CFLAGS_JDKEXE)) -Zc:wchar_t \ |
|
674 |
-analyze- -Od -Gd -D_WINDOWS \ |
|
675 |
-D_UNICODE -DUNICODE -RTC1 -EHsc, \ |
|
676 |
LDFLAGS := $(LDFLAGS_JDKEXE) \ |
|
677 |
Advapi32.lib Version.lib User32.lib, \ |
|
678 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jabswitch, \ |
|
679 |
OUTPUT_DIR := $(JDK_OUTPUTDIR)/bin, \ |
|
680 |
PROGRAM := jabswitch, \ |
|
681 |
DEBUG_SYMBOLS := true, \ |
|
682 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/AccessBridgeStatusWindow.rc, \ |
|
683 |
RC_FLAGS := $(RC_FLAGS), \ |
|
684 |
MANIFEST := $(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/jabswitch.manifest)) |
|
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
685 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
686 |
BUILD_LAUNCHERS += $(BUILD_JABSWITCH) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
687 |
|
20547 | 688 |
endif |
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
689 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
690 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14994
diff
changeset
|
691 |
########################################################################################## |
14231 | 692 |
|
21805 | 693 |
$(BUILD_LAUNCHERS): $(JDK_TOPDIR)/make/CompileLaunchers.gmk |
14231 | 694 |
|
695 |
all: $(BUILD_LAUNCHERS) |
|
696 |
||
697 |
.PHONY: all |