source: trunk/openjdk/jdk/make/launchers/Makefile

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 5.2 KB
Line 
1#
2# Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved.
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
26#
27# Makefile for building simple launchers
28#
29
30BUILDDIR = ..
31PACKAGE = launchers
32PRODUCT = sun
33include $(BUILDDIR)/common/Defs.gmk
34
35# Run MAKE $@ for a launcher:
36# $(call make-launcher, name, mainclass, java-args, main-args)
37define make-launcher
38$(MAKE) -f Makefile.launcher \
39 PROGRAM=$(strip $1) \
40 MAIN_CLASS=$(strip $2) \
41 MAIN_JAVA_ARGS="$(strip $3)" \
42 MAIN_ARGS="$(strip $4)" $@
43endef
44
45# Run MAKE $@ for all launchers
46ifeq ($(filter-out windows os2, $(PLATFORM)),)
47# Run MAKE $@ for all platform specific launchers
48define make-platform-specific-launchers
49$(call make-launcher, kinit, sun.security.krb5.internal.tools.Kinit, , )
50$(call make-launcher, klist, sun.security.krb5.internal.tools.Klist, , )
51$(call make-launcher, ktab, sun.security.krb5.internal.tools.Ktab, , )
52endef
53else
54# Run MAKE $@ for all platform specific launchers
55define make-platform-specific-launchers
56endef
57endif
58# Run MAKE $@ for all generic launchers
59define make-all-launchers
60$(call make-launcher, appletviewer, sun.applet.Main, , )
61$(call make-launcher, apt, com.sun.tools.apt.Main, , )
62$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
63$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
64$(call make-launcher, jar, sun.tools.jar.Main, , )
65$(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
66$(call make-launcher, javac, com.sun.tools.javac.Main, , )
67$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
68$(call make-launcher, javah, com.sun.tools.javah.Main, , )
69$(call make-launcher, javap, sun.tools.javap.Main, , )
70$(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \
71 -J-Djconsole.showOutputViewer, )
72$(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , )
73$(call make-launcher, jhat, com.sun.tools.hat.Main, , )
74$(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \
75 -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
76 -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
77$(call make-launcher, jmap, sun.tools.jmap.JMap, \
78 -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
79 -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
80$(call make-launcher, jps, sun.tools.jps.Jps, , )
81$(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , )
82$(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , )
83$(call make-launcher, jstack, sun.tools.jstack.JStack, \
84 -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
85 -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
86$(call make-launcher, jstat, sun.tools.jstat.Jstat, , )
87$(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , )
88$(call make-launcher, keytool, sun.security.tools.KeyTool, , )
89$(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , )
90$(call make-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \
91 -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
92 -J-Dcom.sun.CORBA.activation.Port=1049 \
93 -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
94$(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack)
95$(call make-launcher, policytool, sun.security.tools.PolicyTool, , )
96$(call make-launcher, rmic, sun.rmi.rmic.Main, , )
97$(call make-launcher, rmid, sun.rmi.server.Activation, , )
98$(call make-launcher, rmiregistry, sun.rmi.registry.RegistryImpl, , )
99$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
100$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
101$(call make-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
102$(call make-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \
103 -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
104 -J-Djava.util.logging.LoggingPermission=contol \
105 -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
106$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
107$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
108$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
109endef
110
111build:
112 $(make-all-launchers)
113 $(make-platform-specific-launchers)
114
115clean clobber::
116 $(make-all-launchers)
117 $(make-platform-specific-launchers)
118
119include $(BUILDDIR)/common/Rules.gmk
120
Note: See TracBrowser for help on using the repository browser.