author | jjg |
Mon, 25 Feb 2013 15:08:11 -0800 | |
changeset 16029 | 4e88242da117 |
parent 14994 | a544909d1d1c |
child 21381 | 2e106db79c90 |
permissions | -rw-r--r-- |
2 | 1 |
# |
11826 | 2 |
# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Makefile for building simple launchers |
|
28 |
# |
|
29 |
||
30 |
BUILDDIR = .. |
|
31 |
PACKAGE = launchers |
|
32 |
PRODUCT = sun |
|
33 |
include $(BUILDDIR)/common/Defs.gmk |
|
34 |
||
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
35 |
# Run MAKE $@ for a launcher for the corba module: |
2 | 36 |
# $(call make-launcher, name, mainclass, java-args, main-args) |
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
37 |
define make-corba-launcher |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
38 |
$(CD) $(BUILDDIR)/launchers && \ |
2 | 39 |
$(MAKE) -f Makefile.launcher \ |
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
40 |
PROGRAM=$(strip $1) \ |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
41 |
MAIN_CLASS=$(strip $2) \ |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
42 |
MAIN_JAVA_ARGS="$(strip $3)" \ |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
43 |
MAIN_ARGS="$(strip $4)" |
2 | 44 |
endef |
45 |
||
46 |
# Run MAKE $@ for all generic launchers |
|
9002 | 47 |
ifndef BUILD_HEADLESS_ONLY |
48 |
define make-appletviewer |
|
49 |
$(call make-launcher, appletviewer, sun.applet.Main, , ) |
|
50 |
endef |
|
51 |
else |
|
52 |
define make-appletviewer |
|
53 |
endef |
|
54 |
endif |
|
55 |
||
2 | 56 |
define make-all-launchers |
9002 | 57 |
$(make-appletviewer) |
2 | 58 |
$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , ) |
59 |
$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , ) |
|
60 |
$(call make-launcher, jar, sun.tools.jar.Main, , ) |
|
14182
3041082abb40
7194449: String resources for Key Tool and Policy Tool should be in their respective packages
sflores
parents:
11826
diff
changeset
|
61 |
$(call make-launcher, jarsigner, sun.security.tools.jarsigner.Main, , ) |
2 | 62 |
$(call make-launcher, javac, com.sun.tools.javac.Main, , ) |
63 |
$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , ) |
|
64 |
$(call make-launcher, javah, com.sun.tools.javah.Main, , ) |
|
2939 | 65 |
$(call make-launcher, javap, com.sun.tools.javap.Main, , ) |
14994
a544909d1d1c
8003562: Provide a CLI tool to analyze class dependencies
mchung
parents:
14182
diff
changeset
|
66 |
$(call make-launcher, jdeps, com.sun.tools.jdeps.Main, , ) |
11365 | 67 |
$(call make-launcher, jcmd, sun.tools.jcmd.JCmd, , ) |
2 | 68 |
$(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \ |
69 |
-J-Djconsole.showOutputViewer, ) |
|
70 |
$(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , ) |
|
71 |
$(call make-launcher, jhat, com.sun.tools.hat.Main, , ) |
|
72 |
$(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \ |
|
73 |
-J-Dsun.jvm.hotspot.debugger.useProcDebugger \ |
|
74 |
-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, ) |
|
75 |
$(call make-launcher, jmap, sun.tools.jmap.JMap, \ |
|
76 |
-J-Dsun.jvm.hotspot.debugger.useProcDebugger \ |
|
77 |
-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, ) |
|
78 |
$(call make-launcher, jps, sun.tools.jps.Jps, , ) |
|
79 |
$(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , ) |
|
16029 | 80 |
$(call make-launcher, jjs, jdk.nashorn.tools.Shell, , ) |
2 | 81 |
$(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , ) |
82 |
$(call make-launcher, jstack, sun.tools.jstack.JStack, \ |
|
83 |
-J-Dsun.jvm.hotspot.debugger.useProcDebugger \ |
|
84 |
-J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, ) |
|
85 |
$(call make-launcher, jstat, sun.tools.jstat.Jstat, , ) |
|
86 |
$(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , ) |
|
87 |
$(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , ) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
88 |
$(call make-launcher, rmic, sun.rmi.rmic.Main, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
89 |
$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
90 |
$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
91 |
$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
92 |
$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
93 |
$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
94 |
$(call make-corba-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \ |
2 | 95 |
-J-Dcom.sun.CORBA.activation.DbDir=./orb.db \ |
96 |
-J-Dcom.sun.CORBA.activation.Port=1049 \ |
|
97 |
-J-Dcom.sun.CORBA.POA.ORBServerId=1, ) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
98 |
$(call make-corba-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , ) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
2939
diff
changeset
|
99 |
$(call make-corba-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \ |
2 | 100 |
-J-Dcom.sun.CORBA.activation.DbDir=./orb.db \ |
101 |
-J-Djava.util.logging.LoggingPermission=contol \ |
|
102 |
-J-Dcom.sun.CORBA.POA.ORBServerId=1, ) |
|
103 |
endef |
|
104 |
||
105 |
build: |
|
106 |
$(make-all-launchers) |
|
107 |
||
108 |
clean clobber:: |
|
109 |
$(make-all-launchers) |
|
110 |
||
111 |
include $(BUILDDIR)/common/Rules.gmk |
|
112 |