jdk/make/launchers/Makefile
changeset 2 90ce3da70b43
child 2939 958dd4d51d1e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/make/launchers/Makefile	Sat Dec 01 00:00:00 2007 +0000
@@ -0,0 +1,120 @@
+#
+# Copyright 2004-2005 Sun Microsystems, Inc.  All Rights Reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Sun designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Sun in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+# CA 95054 USA or visit www.sun.com if you need additional information or
+# have any questions.
+#
+
+#
+# Makefile for building simple launchers
+#
+
+BUILDDIR = ..
+PACKAGE = launchers
+PRODUCT = sun
+include $(BUILDDIR)/common/Defs.gmk
+
+# Run MAKE $@ for a launcher: 
+#   $(call make-launcher, name, mainclass, java-args, main-args)
+define make-launcher
+$(MAKE) -f Makefile.launcher \
+	PROGRAM=$(strip $1) \
+	MAIN_CLASS=$(strip $2) \
+	MAIN_JAVA_ARGS="$(strip $3)" \
+	MAIN_ARGS="$(strip $4)" $@
+endef
+
+# Run MAKE $@ for all launchers
+ifeq ($(PLATFORM),windows)
+# Run MAKE $@ for all platform specific launchers
+define make-platform-specific-launchers
+$(call make-launcher, kinit, sun.security.krb5.internal.tools.Kinit, , )
+$(call make-launcher, klist, sun.security.krb5.internal.tools.Klist, , )
+$(call make-launcher, ktab, sun.security.krb5.internal.tools.Ktab, , )
+endef
+else
+# Run MAKE $@ for all platform specific launchers
+define make-platform-specific-launchers
+endef
+endif
+# Run MAKE $@ for all generic launchers
+define make-all-launchers
+$(call make-launcher, appletviewer, sun.applet.Main, , )
+$(call make-launcher, apt, com.sun.tools.apt.Main, , )
+$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
+$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
+$(call make-launcher, jar, sun.tools.jar.Main, , )
+$(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
+$(call make-launcher, javac, com.sun.tools.javac.Main, , )
+$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
+$(call make-launcher, javah, com.sun.tools.javah.Main, , )
+$(call make-launcher, javap, sun.tools.javap.Main, , )
+$(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \
+  -J-Djconsole.showOutputViewer, )
+$(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , )
+$(call make-launcher, jhat, com.sun.tools.hat.Main, , )
+$(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \
+  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
+  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
+$(call make-launcher, jmap, sun.tools.jmap.JMap, \
+  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
+  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
+$(call make-launcher, jps, sun.tools.jps.Jps, , )
+$(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , )
+$(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , )
+$(call make-launcher, jstack, sun.tools.jstack.JStack, \
+  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
+  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
+$(call make-launcher, jstat, sun.tools.jstat.Jstat, , )
+$(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , )
+$(call make-launcher, keytool, sun.security.tools.KeyTool, , )
+$(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , )
+$(call make-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \
+  -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
+  -J-Dcom.sun.CORBA.activation.Port=1049 \
+  -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
+$(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack)
+$(call make-launcher, policytool, sun.security.tools.PolicyTool, , )
+$(call make-launcher, rmic, sun.rmi.rmic.Main, , )
+$(call make-launcher, rmid, sun.rmi.server.Activation, , )
+$(call make-launcher, rmiregistry, sun.rmi.registry.RegistryImpl, , )
+$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
+$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
+$(call make-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
+$(call make-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \
+  -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
+  -J-Djava.util.logging.LoggingPermission=contol \
+  -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
+$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
+$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
+$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
+endef
+
+build:
+	$(make-all-launchers)
+	$(make-platform-specific-launchers)
+
+clean clobber::
+	$(make-all-launchers)
+	$(make-platform-specific-launchers)
+
+include $(BUILDDIR)/common/Rules.gmk
+