Makefile revision 3431
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This code is free software; you can redistribute it and/or modify it
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# under the terms of the GNU General Public License version 2 only, as
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# published by the Free Software Foundation. Oracle designates this
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# particular file as subject to the "Classpath" exception as provided
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# by Oracle in the LICENSE file that accompanied this code.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This code is distributed in the hope that it will be useful, but WITHOUT
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# version 2 for more details (a copy is included in the LICENSE file that
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# accompanied this code).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You should have received a copy of the GNU General Public License version
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 2 along with this work; if not, write to the Free Software Foundation,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or visit www.oracle.com if you need additional information or have any
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# questions.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Makefile for building jconsole
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweBUILDDIR = ../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweMODULE = jconsole
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePACKAGE = sun.tools.jconsole
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePRODUCT = sun
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(BUILDDIR)/common/Defs.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This program must contain a manifest that defines the execution level
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# needed to follow standard Vista User Access Control Guidelines
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This must be set before Program.gmk is included
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweBUILD_MANIFEST=true
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweJARFILE = $(LIBDIR)/jconsole.jar
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOTHER_JAVACFLAGS += -encoding iso8859-1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Files
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude FILES.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAUTO_FILES_JAVA_DIRS = sun/tools/jconsole \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe com/sun/tools/jconsole
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_png = $(PNG_FILES:%.png=$(CLASSBINDIR)/%.png)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_gif = $(GIF_FILES:%.gif=$(CLASSBINDIR)/%.gif)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowebuild: $(GENSRCDIR)/sun/tools/jconsole/Version.java
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Resources
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLOCALE_SET_DEFINITION = jdk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweRESOURCE_BUNDLES_JAVA = $(PKGDIR)/resources/JConsoleResources.java
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Rules.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(BUILDDIR)/common/Classes.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowebuild: $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest $(JARFILE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(GENSRCDIR)/sun/tools/jconsole/Version.java: \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(SHARE_SRC)/classes/sun/tools/jconsole/Version.java.template
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(MKDIR) -p $(@D)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(CLASSBINDIR)/$(PKGDIR)/resources/%: $(SHARE_SRC)/classes/$(PKGDIR)/resources/%
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @$(MKDIR) -p $(@D)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(install-file)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(TEMPDIR)/manifest: $(SHARE_SRC)/classes/$(PKGDIR)/manifest
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(install-manifest-file)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Extra rule to build jconsole.jar
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(JARFILE): $(LIBDIR) $(FILES_class) $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(BOOT_JAR_CMD) -cfm $(JARFILE) $(TEMPDIR)/manifest \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -C $(CLASSBINDIR) sun/tools/jconsole \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -C $(CLASSBINDIR) com/sun/tools/jconsole \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(BOOT_JAR_JFLAGS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe @$(java-vm-cleanup)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean clobber::
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(RM) $(TEMPDIR)/manifest $(JARFILE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe