jdk/make/launchers/Makefile
author chegar
Wed, 12 Nov 2008 16:38:17 +0000
changeset 1576 b697b141012d
parent 2 90ce3da70b43
child 2939 958dd4d51d1e
permissions -rw-r--r--
6755625: Add HttpURLConnection.setFixedLengthStreamingMode(long) Reviewed-by: jccollet
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 2004-2005 Sun Microsystems, Inc.  All Rights Reserved.
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
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
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
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
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 = ..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
PACKAGE = launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
PRODUCT = sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# Run MAKE $@ for a launcher: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#   $(call make-launcher, name, mainclass, java-args, main-args)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
define make-launcher
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
$(MAKE) -f Makefile.launcher \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	PROGRAM=$(strip $1) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
	MAIN_CLASS=$(strip $2) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
	MAIN_JAVA_ARGS="$(strip $3)" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
	MAIN_ARGS="$(strip $4)" $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
# Run MAKE $@ for all launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
ifeq ($(PLATFORM),windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
# Run MAKE $@ for all platform specific launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
define make-platform-specific-launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
$(call make-launcher, kinit, sun.security.krb5.internal.tools.Kinit, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
$(call make-launcher, klist, sun.security.krb5.internal.tools.Klist, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
$(call make-launcher, ktab, sun.security.krb5.internal.tools.Ktab, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
# Run MAKE $@ for all platform specific launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
define make-platform-specific-launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# Run MAKE $@ for all generic launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
define make-all-launchers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
$(call make-launcher, appletviewer, sun.applet.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
$(call make-launcher, apt, com.sun.tools.apt.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
$(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
$(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
$(call make-launcher, jar, sun.tools.jar.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
$(call make-launcher, jarsigner, sun.security.tools.JarSigner, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
$(call make-launcher, javac, com.sun.tools.javac.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
$(call make-launcher, javadoc, com.sun.tools.javadoc.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
$(call make-launcher, javah, com.sun.tools.javah.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
$(call make-launcher, javap, sun.tools.javap.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
$(call make-launcher, jconsole, sun.tools.jconsole.JConsole, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
  -J-Djconsole.showOutputViewer, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
$(call make-launcher, jdb, com.sun.tools.example.debug.tty.TTY, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
$(call make-launcher, jhat, com.sun.tools.hat.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
$(call make-launcher, jinfo, sun.tools.jinfo.JInfo, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
$(call make-launcher, jmap, sun.tools.jmap.JMap, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
$(call make-launcher, jps, sun.tools.jps.Jps, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
$(call make-launcher, jrunscript, com.sun.tools.script.shell.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
$(call make-launcher, jsadebugd, sun.jvm.hotspot.jdi.SADebugServer, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
$(call make-launcher, jstack, sun.tools.jstack.JStack, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
  -J-Dsun.jvm.hotspot.debugger.useProcDebugger \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
  -J-Dsun.jvm.hotspot.debugger.useWindbgDebugger, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
$(call make-launcher, jstat, sun.tools.jstat.Jstat, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
$(call make-launcher, jstatd, sun.tools.jstatd.Jstatd, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
$(call make-launcher, keytool, sun.security.tools.KeyTool, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
$(call make-launcher, native2ascii, sun.tools.native2ascii.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
$(call make-launcher, orbd, com.sun.corba.se.impl.activation.ORBD, \
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-Dcom.sun.CORBA.activation.Port=1049 \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
  -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
$(call make-launcher, pack200, com.sun.java.util.jar.pack.Driver, , --pack)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
$(call make-launcher, policytool, sun.security.tools.PolicyTool, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
$(call make-launcher, rmic, sun.rmi.rmic.Main, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
$(call make-launcher, rmid, sun.rmi.server.Activation, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
$(call make-launcher, rmiregistry, sun.rmi.registry.RegistryImpl, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
$(call make-launcher, schemagen, com.sun.tools.internal.jxc.SchemaGenerator, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
$(call make-launcher, serialver, sun.tools.serialver.SerialVer, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
$(call make-launcher, servertool, com.sun.corba.se.impl.activation.ServerTool, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
$(call make-launcher, tnameserv, com.sun.corba.se.impl.naming.cosnaming.TransientNameServer, \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
  -J-Dcom.sun.CORBA.activation.DbDir=./orb.db \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  -J-Djava.util.logging.LoggingPermission=contol \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
  -J-Dcom.sun.CORBA.POA.ORBServerId=1, )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
$(call make-launcher, wsgen, com.sun.tools.internal.ws.WsGen, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
$(call make-launcher, wsimport, com.sun.tools.internal.ws.WsImport, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
$(call make-launcher, xjc, com.sun.tools.internal.xjc.Driver, , )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
build:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
	$(make-all-launchers)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
	$(make-platform-specific-launchers)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
clean clobber::
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
	$(make-all-launchers)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
	$(make-platform-specific-launchers)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
include $(BUILDDIR)/common/Rules.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120