Makefile revision 2362
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright (c) 2004, 2005, Oracle and/or its affiliates. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
db0008c4486414b81e90dca9938e1fc2320e5133Automatic Updater# This code is free software; you can redistribute it and/or modify it
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# under the terms of the GNU General Public License version 2 only, as
db0008c4486414b81e90dca9938e1fc2320e5133Automatic Updater# published by the Free Software Foundation. Oracle designates this
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# particular file as subject to the "Classpath" exception as provided
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# by Oracle in the LICENSE file that accompanied this code.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# This code is distributed in the hope that it will be useful, but WITHOUT
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# version 2 for more details (a copy is included in the LICENSE file that
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# accompanied this code).
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You should have received a copy of the GNU General Public License version
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# 2 along with this work; if not, write to the Free Software Foundation,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
733531b6d5c705dad87e85a2bcc557f68f902bb3Jeremy Reed#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# or visit www.oracle.com if you need additional information or have any
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# questions.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Makefile for building simple launchers
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis DupontBUILDDIR = ..
2a31bd531072824ef252c18303859d6af7451b00Francis DupontMODULE = tools
2a31bd531072824ef252c18303859d6af7451b00Francis DupontPACKAGE = launchers
2a31bd531072824ef252c18303859d6af7451b00Francis DupontPRODUCT = sun
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(BUILDDIR)/common/Defs.gmk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Run MAKE $@ for a launcher for the corba module:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# $(call make-launcher, name, mainclass, java-args, main-args)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontdefine make-corba-launcher
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(CD) $(BUILDDIR)/launchers && \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(MAKE) -f Makefile.launcher \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont MODULE=corba \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont PROGRAM=$(strip $1) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont MAIN_CLASS=$(strip $2) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont MAIN_JAVA_ARGS="$(strip $3)" \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont MAIN_ARGS="$(strip $4)"
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendef
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Run MAKE $@ for all generic launchers
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontdefine make-all-launchers
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, appletviewer, sun.applet.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, apt, com.sun.tools.apt.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jar, sun.tools.jar.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, javac, com.sun.tools.javac.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, javah, com.sun.tools.javah.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, javap, com.sun.tools.javap.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Djconsole.showOutputViewer, )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jhat, com.sun.tools.hat.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jmap, sun.tools.jmap.JMap, \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jps, sun.tools.jps.Jps, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jstack, sun.tools.jstack.JStack, \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jstat, sun.tools.jstat.Jstat, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , )
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews$(call make-launcher, rmic, sun.rmi.rmic.Main, , )
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-corba-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dcom.sun.CORBA.activation.Port=1049 \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-corba-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont$(call make-corba-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Djava.util.logging.LoggingPermission=contol \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontendef
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontbuild:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(make-all-launchers)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontclean clobber::
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(make-all-launchers)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(BUILDDIR)/common/Rules.gmk
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont