Makefile revision 3876
1788N/A#
1788N/A# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
1788N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1788N/A#
1788N/A# This code is free software; you can redistribute it and/or modify it
1788N/A# under the terms of the GNU General Public License version 2 only, as
1788N/A# published by the Free Software Foundation. Oracle designates this
1788N/A# particular file as subject to the "Classpath" exception as provided
1788N/A# by Oracle in the LICENSE file that accompanied this code.
1788N/A#
1788N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1788N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1788N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1788N/A# version 2 for more details (a copy is included in the LICENSE file that
1788N/A# accompanied this code).
1788N/A#
1788N/A# You should have received a copy of the GNU General Public License version
1788N/A# 2 along with this work; if not, write to the Free Software Foundation,
1788N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1788N/A#
2899N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1788N/A# or visit www.oracle.com if you need additional information or have any
1788N/A# questions.
1788N/A#
1788N/A
1788N/A#
1788N/A# Makefile for building simple launchers
1788N/A#
1788N/A
1788N/ABUILDDIR = ..
1788N/APACKAGE = launchers
1788N/APRODUCT = sun
1788N/Ainclude $(BUILDDIR)/common/Defs.gmk
1788N/A
1788N/A# Run MAKE $@ for a launcher for the corba module:
1788N/A# $(call make-launcher, name, mainclass, java-args, main-args)
2899N/Adefine make-corba-launcher
2899N/A$(CD) $(BUILDDIR)/launchers && \
1788N/A$(MAKE) -f Makefile.launcher \
1788N/A PROGRAM=$(strip $1) \
1788N/A MAIN_CLASS=$(strip $2) \
1788N/A MAIN_JAVA_ARGS="$(strip $3)" \
1788N/A MAIN_ARGS="$(strip $4)"
1788N/Aendef
1788N/A
1938N/A# Run MAKE $@ for all generic launchers
1788N/Aifndef BUILD_HEADLESS_ONLY
1788N/Adefine make-appletviewer
1788N/A$(call make-launcher, appletviewer, sun.applet.Main, , )
1788N/Aendef
1788N/Aelse
1788N/Adefine make-appletviewer
1788N/Aendef
1788N/Aendif
1788N/A
1788N/Adefine make-all-launchers
1788N/A$(make-appletviewer)
1788N/A$(call make-launcher, apt, com.sun.tools.apt.Main, , )
1788N/A$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
1788N/A$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
1788N/A$(call make-launcher, jar, sun.tools.jar.Main, , )
1788N/A$(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
1788N/A$(call make-launcher, javac, com.sun.tools.javac.Main, , )
1788N/A$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
$(call make-launcher, javah, com.sun.tools.javah.Main, , )
$(call make-launcher, javap, com.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, native2ascii, sun.tools.native2ascii.Main, , )
$(call make-launcher, rmic, sun.rmi.rmic.Main, , )
$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
$(call make-corba-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-corba-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
$(call make-corba-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, )
endef
build:
$(make-all-launchers)
clean clobber::
$(make-all-launchers)
include $(BUILDDIR)/common/Rules.gmk