comparison make/launchers/Makefile @ 0:37a05a11f281

Initial load
author duke
date Sat, 01 Dec 2007 00:00:00 +0000
parents
children aece9096d5cd
comparison
equal deleted inserted replaced
-1:000000000000 0:c68b03d4154e
1 #
2 # Copyright 2004-2005 Sun Microsystems, Inc. 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. Sun designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 # CA 95054 USA or visit www.sun.com if you need additional information or
23 # have any questions.
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
35 # Run MAKE $@ for a launcher:
36 # $(call make-launcher, name, mainclass, java-args, main-args)
37 define 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)" $@
43 endef
44
45 # Run MAKE $@ for all launchers
46 ifeq ($(PLATFORM),windows)
47 # Run MAKE $@ for all platform specific launchers
48 define 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, , )
52 endef
53 else
54 # Run MAKE $@ for all platform specific launchers
55 define make-platform-specific-launchers
56 endef
57 endif
58 # Run MAKE $@ for all generic launchers
59 define 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, , )
109 endef
110
111 build:
112 $(make-all-launchers)
113 $(make-platform-specific-launchers)
114
115 clean clobber::
116 $(make-all-launchers)
117 $(make-platform-specific-launchers)
118
119 include $(BUILDDIR)/common/Rules.gmk
120