annotate make/launchers/Makefile @ 0:37a05a11f281

Initial load
author duke
date Sat, 01 Dec 2007 00:00:00 +0000
parents
children aece9096d5cd
rev   line source
duke@0 1 #
duke@0 2 # Copyright 2004-2005 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation. Sun designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
duke@0 9 # by Sun in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
duke@0 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 23 # have any questions.
duke@0 24 #
duke@0 25
duke@0 26 #
duke@0 27 # Makefile for building simple launchers
duke@0 28 #
duke@0 29
duke@0 30 BUILDDIR = ..
duke@0 31 PACKAGE = launchers
duke@0 32 PRODUCT = sun
duke@0 33 include $(BUILDDIR)/common/Defs.gmk
duke@0 34
duke@0 35 # Run MAKE $@ for a launcher:
duke@0 36 # $(call make-launcher, name, mainclass, java-args, main-args)
duke@0 37 define make-launcher
duke@0 38 $(MAKE) -f Makefile.launcher \
duke@0 39 PROGRAM=$(strip $1) \
duke@0 40 MAIN_CLASS=$(strip $2) \
duke@0 41 MAIN_JAVA_ARGS="$(strip $3)" \
duke@0 42 MAIN_ARGS="$(strip $4)" $@
duke@0 43 endef
duke@0 44
duke@0 45 # Run MAKE $@ for all launchers
duke@0 46 ifeq ($(PLATFORM),windows)
duke@0 47 # Run MAKE $@ for all platform specific launchers
duke@0 48 define make-platform-specific-launchers
duke@0 49 $(call make-launcher, kinit, sun.security.krb5.internal.tools.Kinit, , )
duke@0 50 $(call make-launcher, klist, sun.security.krb5.internal.tools.Klist, , )
duke@0 51 $(call make-launcher, ktab, sun.security.krb5.internal.tools.Ktab, , )
duke@0 52 endef
duke@0 53 else
duke@0 54 # Run MAKE $@ for all platform specific launchers
duke@0 55 define make-platform-specific-launchers
duke@0 56 endef
duke@0 57 endif
duke@0 58 # Run MAKE $@ for all generic launchers
duke@0 59 define make-all-launchers
duke@0 60 $(call make-launcher, appletviewer, sun.applet.Main, , )
duke@0 61 $(call make-launcher, apt, com.sun.tools.apt.Main, , )
duke@0 62 $(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
duke@0 63 $(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
duke@0 64 $(call make-launcher, jar, sun.tools.jar.Main, , )
duke@0 65 $(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
duke@0 66 $(call make-launcher, javac, com.sun.tools.javac.Main, , )
duke@0 67 $(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
duke@0 68 $(call make-launcher, javah, com.sun.tools.javah.Main, , )
duke@0 69 $(call make-launcher, javap, sun.tools.javap.Main, , )
duke@0 70 $(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \
duke@0 71 -J-Djconsole.showOutputViewer, )
duke@0 72 $(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , )
duke@0 73 $(call make-launcher, jhat, com.sun.tools.hat.Main, , )
duke@0 74 $(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \
duke@0 75 -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
duke@0 76 -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
duke@0 77 $(call make-launcher, jmap, sun.tools.jmap.JMap, \
duke@0 78 -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
duke@0 79 -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
duke@0 80 $(call make-launcher, jps, sun.tools.jps.Jps, , )
duke@0 81 $(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , )
duke@0 82 $(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , )
duke@0 83 $(call make-launcher, jstack, sun.tools.jstack.JStack, \
duke@0 84 -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
duke@0 85 -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
duke@0 86 $(call make-launcher, jstat, sun.tools.jstat.Jstat, , )
duke@0 87 $(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , )
duke@0 88 $(call make-launcher, keytool, sun.security.tools.KeyTool, , )
duke@0 89 $(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , )
duke@0 90 $(call make-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \
duke@0 91 -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
duke@0 92 -J-Dcom.sun.CORBA.activation.Port=1049 \
duke@0 93 -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
duke@0 94 $(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack)
duke@0 95 $(call make-launcher, policytool, sun.security.tools.PolicyTool, , )
duke@0 96 $(call make-launcher, rmic, sun.rmi.rmic.Main, , )
duke@0 97 $(call make-launcher, rmid, sun.rmi.server.Activation, , )
duke@0 98 $(call make-launcher, rmiregistry, sun.rmi.registry.RegistryImpl, , )
duke@0 99 $(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
duke@0 100 $(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
duke@0 101 $(call make-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
duke@0 102 $(call make-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \
duke@0 103 -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
duke@0 104 -J-Djava.util.logging.LoggingPermission=contol \
duke@0 105 -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
duke@0 106 $(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
duke@0 107 $(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
duke@0 108 $(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
duke@0 109 endef
duke@0 110
duke@0 111 build:
duke@0 112 $(make-all-launchers)
duke@0 113 $(make-platform-specific-launchers)
duke@0 114
duke@0 115 clean clobber::
duke@0 116 $(make-all-launchers)
duke@0 117 $(make-platform-specific-launchers)
duke@0 118
duke@0 119 include $(BUILDDIR)/common/Rules.gmk
duke@0 120