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