Makefile revision 2247
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2004-2008 Sun Microsystems, Inc. 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. Sun designates this
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# particular file as subject to the "Classpath" exception as provided
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# by Sun 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
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# version 2 for more details (a copy is included in the LICENSE file that
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# accompanied this code).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# 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,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CA 95054 USA or visit www.sun.com if you need additional information or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# have any 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
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
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)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(SED) -e 's/@@jconsole_version@@/$(FULL_VERSION)/g' $< > $@
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov$(CLASSBINDIR)/$(PKGDIR)/resources/%: $(SHARE_SRC)/classes/$(PKGDIR)/resources/%
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov @$(MKDIR) -p $(@D)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(install-file)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov$(TEMPDIR)/manifest: $(SHARE_SRC)/classes/$(PKGDIR)/manifest
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(install-manifest-file)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# Extra rule to build jconsole.jar
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov$(JARFILE): $(LIBDIR) $(FILES_class) $(FILES_png) $(FILES_gif) $(TEMPDIR)/manifest
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(BOOT_JAR_CMD) -cfm $(JARFILE) $(TEMPDIR)/manifest \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov -C $(CLASSBINDIR) sun/tools/jconsole \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov -C $(CLASSBINDIR) com/sun/tools/jconsole \
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(BOOT_JAR_JFLAGS)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov @$(java-vm-cleanup)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovclean clobber::
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov $(RM) $(TEMPDIR)/manifest $(JARFILE)
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov