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