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