Makefile revision 206
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
55434c770c89aa1b84474f2559a106803511aba0ek# This code is free software; you can redistribute it and/or modify it
55434c770c89aa1b84474f2559a106803511aba0ek# under the terms of the GNU General Public License version 2 only, as
fa9e4066f08beec538e775443c5be79dd423fcabahrens# published by the Free Software Foundation. Sun designates this
fa9e4066f08beec538e775443c5be79dd423fcabahrens# particular file as subject to the "Classpath" exception as provided
fa9e4066f08beec538e775443c5be79dd423fcabahrens# by Sun in the LICENSE file that accompanied this code.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# This code is distributed in the hope that it will be useful, but WITHOUT
fa9e4066f08beec538e775443c5be79dd423fcabahrens# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fa9e4066f08beec538e775443c5be79dd423fcabahrens# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fa9e4066f08beec538e775443c5be79dd423fcabahrens# version 2 for more details (a copy is included in the LICENSE file that
fa9e4066f08beec538e775443c5be79dd423fcabahrens# accompanied this code).
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You should have received a copy of the GNU General Public License version
fa9e4066f08beec538e775443c5be79dd423fcabahrens# 2 along with this work; if not, write to the Free Software Foundation,
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum# CA 95054 USA or visit www.sun.com if you need additional information or
fa9e4066f08beec538e775443c5be79dd423fcabahrens# have any questions.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Makefile for building jconsole
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensBUILDDIR = ../..
fa9e4066f08beec538e775443c5be79dd423fcabahrensPACKAGE = sun.tools.jconsole
fa9e4066f08beec538e775443c5be79dd423fcabahrensPRODUCT = sun
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude $(BUILDDIR)/common/Defs.gmk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensJARFILE = $(LIBDIR)/jconsole.jar
fa9e4066f08beec538e775443c5be79dd423fcabahrens
4f5064b73b1cc9de1d0f1a2ae700d519d4d565dfMark J MusanteOTHER_JAVACFLAGS += -encoding iso8859-1
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Files
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude FILES.gmk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensAUTO_FILES_JAVA_DIRS = sun/tools/jconsole \
fa9e4066f08beec538e775443c5be79dd423fcabahrens com/sun/tools/jconsole
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensFILES_png = $(PNG_FILES:%.png=$(CLASSBINDIR)/%.png)
55434c770c89aa1b84474f2559a106803511aba0ekFILES_gif = $(GIF_FILES:%.gif=$(CLASSBINDIR)/%.gif)
88b7b0f29b20b808b9e06071885b1d6a3ddb6328Matthew Ahrens
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwickbuild: $(GENSRCDIR)/sun/tools/jconsole/Version.java
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick#
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum# Resources
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum#
fa9e4066f08beec538e775443c5be79dd423fcabahrensLOCALE_SET_DEFINITION = jdk
e05725b117836db173257fae43fb0746eb857fb5bonwickRESOURCE_BUNDLES_JAVA = $(PKGDIR)/resources/JConsoleResources.java
d6e555bdd793b8bc8fe57d5f12c3d69c813d0661George Wilson
#
# Rules.
#
include $(BUILDDIR)/common/Classes.gmk
build: $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest $(JARFILE)
$(GENSRCDIR)/sun/tools/jconsole/Version.java: \
$(SHARE_SRC)/classes/sun/tools/jconsole/Version-template.java
$(MKDIR) -p $(@D)
$(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@
$(CLASSBINDIR)/$(PKGDIR)/resources/%: $(SHARE_SRC)/classes/$(PKGDIR)/resources/%
@$(MKDIR) -p $(@D)
$(install-file)
$(TEMPDIR)/manifest: $(SHARE_SRC)/classes/$(PKGDIR)/manifest
$(install-file)
#
# Extra rule to build jconsole.jar
#
$(JARFILE): $(LIBDIR) $(FILES_class) $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest
$(BOOT_JAR_CMD) -cfm $(JARFILE) $(TEMPDIR)/manifest \
-C $(CLASSBINDIR) sun/tools/jconsole \
-C $(CLASSBINDIR) com/sun/tools/jconsole \
$(JAR_JFLAGS)
@$(java-vm-cleanup)
clean clobber::
$(RM) $(TEMPDIR)/manifest $(JARFILE)