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