Makefile revision 844
1N/A#
1N/A# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
1N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1N/A#
1N/A# This code is free software; you can redistribute it and/or modify it
1N/A# under the terms of the GNU General Public License version 2 only, as
1N/A# published by the Free Software Foundation. Sun designates this
1N/A# particular file as subject to the "Classpath" exception as provided
1N/A# by Sun in the LICENSE file that accompanied this code.
1N/A#
1N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1N/A# version 2 for more details (a copy is included in the LICENSE file that
1N/A# accompanied this code).
1N/A#
1N/A# You should have received a copy of the GNU General Public License version
1N/A# 2 along with this work; if not, write to the Free Software Foundation,
1N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1N/A#
1N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1N/A# CA 95054 USA or visit www.sun.com if you need additional information or
1N/A# have any questions.
1N/A#
1N/A
1N/ABUILDDIR = ../..
1N/APACKAGE = java.lang.management
1N/ALIBRARY = management
1N/APRODUCT = java
1N/Ainclude $(BUILDDIR)/common/Defs.gmk
1N/A
1N/AMGMT_SRC = $(SHARE_SRC)/classes/java/lang/management
1N/ASMGMT_SRC = $(SHARE_SRC)/classes/sun/management
1N/A
1N/AAGENTJAR = $(LIBDIR)/management-agent.jar
1N/AMANIFEST = $(SMGMT_SRC)/manifest
1N/A
1N/A#
1N/A# Use mapfile
1N/A#
1N/AFILES_m = mapfile-vers
1N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
1N/A
1N/A#
1N/A# Files to compile
1N/A#
1N/Ainclude FILES_c.gmk
1N/A
1N/AAUTO_FILES_JAVA_DIRS = java/lang/management com/sun/management sun/management
1N/A
1N/Ainclude Exportedfiles.gmk
1N/A
1N/Aifeq ($(PLATFORM),windows)
1N/A
1N/AFILES_c += OperatingSystem_md.c
1N/A
1N/AFILES_export += com/sun/management/OperatingSystem.java
1N/A
1N/Aelse # PLATFORM (i.e. solaris & linux)
1N/A
1N/AFILES_c += UnixOperatingSystem_md.c
1N/A
1N/AFILES_export += com/sun/management/UnixOperatingSystem.java
1N/Aendif # PLATFORM
1N/A
1N/A#
1N/A# Resources
1N/A#
1N/ALOCALE_SET_DEFINITION = jre
1N/ARESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/management/resources/agent.properties
1N/A
1N/A#
1N/A# Find C source files
1N/A#
1N/Avpath %.c $(SHARE_SRC)/native/sun/management
1N/Avpath %.c $(PLATFORM_SRC)/native/sun/management
1N/Avpath %.c $(PLATFORM_SRC)/native/com/sun/management
1N/A
1N/A#
1N/A# Access to management.h
1N/A#
1N/A
1N/AOTHER_INCLUDES += \
1N/A -I$(SHARE_SRC)/native/sun/management
1N/A
1N/Aifeq ($(PLATFORM),windows)
1N/A OTHER_LDLIBS += $(JVMLIB)
1N/Aendif
1N/A
1N/A#
1N/A# Library to compile.
1N/A#
1N/Ainclude $(BUILDDIR)/common/Library.gmk
1N/A
1N/A$(AGENTJAR): $(LIBDIR) $(TEMPDIR)/manifest
1N/A $(BOOT_JAR_CMD) -cfm $(AGENTJAR) $(TEMPDIR)/manifest $(BOOT_JAR_JFLAGS)
1N/A @$(java-vm-cleanup)
1N/A
1N/A$(TEMPDIR)/manifest: $(MANIFEST)
1N/A $(install-file)
1N/A
1N/Abuild: $(AGENTJAR)
1N/A
1N/Aclean clobber::
1N/A $(RM) -r $(CLASSDESTDIR)/java/management
1N/A $(RM) -r $(CLASSDESTDIR)/sun/management
1N/A $(RM) $(TEMPDIR)/manifest $(AGENTJAR)