jdk/make/launchers/Makefile
author ohair
Tue, 28 Dec 2010 15:53:50 -0800
changeset 7668 d4a77089c587
parent 5506 202f599c92aa
child 8583 15dea0fdc2ea
permissions -rw-r--r--
6962318: Update copyright year Reviewed-by: xdono
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
7668
d4a77089c587 6962318: Update copyright year
ohair
parents: 5506
diff changeset
     2
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Makefile for building simple launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
BUILDDIR = ..
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    31
MODULE  = tools
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
PACKAGE = launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
PRODUCT = sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    36
# Run MAKE $@ for a launcher for the corba module:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#   $(call make-launcher, name, mainclass, java-args, main-args)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    38
define make-corba-launcher
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    39
$(CD) $(BUILDDIR)/launchers && \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
$(MAKE) -f Makefile.launcher \
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    41
        MODULE=corba \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    42
        PROGRAM=$(strip $1) \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    43
        MAIN_CLASS=$(strip $2) \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    44
        MAIN_JAVA_ARGS="$(strip $3)" \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    45
        MAIN_ARGS="$(strip $4)"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
# Run MAKE $@ for all generic launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
define make-all-launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
$(call make-launcher, appletviewer, sun.applet.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
$(call make-launcher, apt, com.sun.tools.apt.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
$(call make-launcher, jar, sun.tools.jar.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
$(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
$(call make-launcher, javac, com.sun.tools.javac.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
$(call make-launcher, javah, com.sun.tools.javah.Main, , )
2939
958dd4d51d1e 6838199: remove support for old javap
jjg
parents: 2
diff changeset
    59
$(call make-launcher, javap, com.sun.tools.javap.Main, , )
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
$(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
  -J-Djconsole.showOutputViewer, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
$(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
$(call make-launcher, jhat, com.sun.tools.hat.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
$(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
$(call make-launcher, jmap, sun.tools.jmap.JMap, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
$(call make-launcher, jps, sun.tools.jps.Jps, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
$(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
$(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
$(call make-launcher, jstack, sun.tools.jstack.JStack, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
$(call make-launcher, jstat, sun.tools.jstat.Jstat, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
$(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
$(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , )
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    79
$(call make-launcher, rmic, sun.rmi.rmic.Main, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    80
$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    81
$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    82
$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    83
$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    84
$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    85
$(call make-corba-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
  -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
  -J-Dcom.sun.CORBA.activation.Port=1049 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
  -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    89
$(call make-corba-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2939
diff changeset
    90
$(call make-corba-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
  -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
  -J-Djava.util.logging.LoggingPermission=contol \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
  -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
build:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
	$(make-all-launchers)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
clean clobber::
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
	$(make-all-launchers)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
include $(BUILDDIR)/common/Rules.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103