jdk/make/java/management/Makefile
author dcubed
Wed, 11 Apr 2012 07:26:35 -0700
changeset 12427 116544b5a04c
parent 12047 320a714614e9
permissions -rw-r--r--
7071907: JDK: Full Debug Symbols Summary: Add initial FDS support to some libraries and programs. Reviewed-by: kamg, fparain, sspitsyn, dsamersoff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
12427
116544b5a04c 7071907: JDK: Full Debug Symbols
dcubed
parents: 12047
diff changeset
     2
# Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
12427
116544b5a04c 7071907: JDK: Full Debug Symbols
dcubed
parents: 12047
diff changeset
    26
LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS=1
116544b5a04c 7071907: JDK: Full Debug Symbols
dcubed
parents: 12047
diff changeset
    27
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
BUILDDIR = ../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
PACKAGE = java.lang.management
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
LIBRARY = management
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
PRODUCT = java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
MGMT_SRC  = $(SHARE_SRC)/classes/java/lang/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
SMGMT_SRC = $(SHARE_SRC)/classes/sun/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
AGENTJAR = $(LIBDIR)/management-agent.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
MANIFEST = $(SMGMT_SRC)/manifest
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
# Use mapfile
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
FILES_m = mapfile-vers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
# Files to compile
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
include FILES_c.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
2285
37fdbed8178f 6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents: 1247
diff changeset
    51
# We don't need snmp here.
37fdbed8178f 6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents: 1247
diff changeset
    52
AUTO_JAVA_PRUNE = snmp
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
AUTO_FILES_JAVA_DIRS = java/lang/management com/sun/management sun/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
include Exportedfiles.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
ifeq ($(PLATFORM),windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
FILES_c     +=  OperatingSystem_md.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
FILES_export +=	com/sun/management/OperatingSystem.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
else # PLATFORM (i.e. solaris & linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
FILES_c     +=  UnixOperatingSystem_md.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
FILES_export +=	com/sun/management/UnixOperatingSystem.java
9559
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    68
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    69
ifeq ($(PLATFORM),solaris)
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    70
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    71
FILES_c     += SolarisOperatingSystem.c
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    72
OTHER_LDLIBS += -lkstat
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    73
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    74
endif # PLATFORM solaris
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    75
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    76
ifeq ($(PLATFORM),linux)
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    77
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    78
FILES_c     += LinuxOperatingSystem.c
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    79
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    80
endif # PLATFORM linux
24c0a7a7297f 7028071: Add two attributes to the OperatingSystemMXBean to provide CPU Load info
fparain
parents: 9050
diff changeset
    81
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9559
diff changeset
    82
ifeq ($(PLATFORM),macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9559
diff changeset
    83
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9559
diff changeset
    84
FILES_c     += MacosxOperatingSystem.c
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9559
diff changeset
    85
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9559
diff changeset
    86
endif # PLATFORM macosx
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9559
diff changeset
    87
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
# Resources
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
LOCALE_SET_DEFINITION = jre
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/management/resources/agent.properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
# Find C source files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
vpath %.c $(SHARE_SRC)/native/sun/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
vpath %.c $(PLATFORM_SRC)/native/sun/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
vpath %.c $(PLATFORM_SRC)/native/com/sun/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
# Access to management.h 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
OTHER_INCLUDES += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
  -I$(SHARE_SRC)/native/sun/management 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
ifeq ($(PLATFORM),windows)
9027
540bd52f1881 7030249: Eliminate use of LoadLibrary and other clean-ups
alanb
parents: 8583
diff changeset
   111
  # Need process status helper API (psapi) on Windows
540bd52f1881 7030249: Eliminate use of LoadLibrary and other clean-ups
alanb
parents: 8583
diff changeset
   112
  OTHER_LDLIBS += $(JVMLIB) psapi.lib
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
# Library to compile.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
$(AGENTJAR): $(LIBDIR) $(TEMPDIR)/manifest
916
867515b155b5 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 2
diff changeset
   121
	$(BOOT_JAR_CMD) -cfm $(AGENTJAR) $(TEMPDIR)/manifest $(BOOT_JAR_JFLAGS)
867515b155b5 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 2
diff changeset
   122
	@$(java-vm-cleanup)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
$(TEMPDIR)/manifest: $(MANIFEST)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 2285
diff changeset
   125
	$(install-manifest-file)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
build: $(AGENTJAR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
clean clobber::
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
	$(RM) -r $(CLASSDESTDIR)/java/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
	$(RM) -r $(CLASSDESTDIR)/sun/management
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
	$(RM) $(TEMPDIR)/manifest $(AGENTJAR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133