author | dcubed |
Wed, 11 Apr 2012 07:26:35 -0700 | |
changeset 12427 | 116544b5a04c |
parent 12047 | 320a714614e9 |
permissions | -rw-r--r-- |
2 | 1 |
# |
12427 | 2 |
# Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
12427 | 26 |
LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS=1 |
27 |
||
2 | 28 |
BUILDDIR = ../.. |
29 |
PACKAGE = java.lang.management |
|
30 |
LIBRARY = management |
|
31 |
PRODUCT = java |
|
32 |
include $(BUILDDIR)/common/Defs.gmk |
|
33 |
||
34 |
MGMT_SRC = $(SHARE_SRC)/classes/java/lang/management |
|
35 |
SMGMT_SRC = $(SHARE_SRC)/classes/sun/management |
|
36 |
||
37 |
AGENTJAR = $(LIBDIR)/management-agent.jar |
|
38 |
MANIFEST = $(SMGMT_SRC)/manifest |
|
39 |
||
40 |
# |
|
41 |
# Use mapfile |
|
42 |
# |
|
43 |
FILES_m = mapfile-vers |
|
44 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
45 |
||
46 |
# |
|
47 |
# Files to compile |
|
48 |
# |
|
49 |
include FILES_c.gmk |
|
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 | 53 |
AUTO_FILES_JAVA_DIRS = java/lang/management com/sun/management sun/management |
54 |
||
55 |
include Exportedfiles.gmk |
|
56 |
||
57 |
ifeq ($(PLATFORM),windows) |
|
58 |
||
59 |
FILES_c += OperatingSystem_md.c |
|
60 |
||
61 |
FILES_export += com/sun/management/OperatingSystem.java |
|
62 |
||
63 |
else # PLATFORM (i.e. solaris & linux) |
|
64 |
||
65 |
FILES_c += UnixOperatingSystem_md.c |
|
66 |
||
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 | 88 |
endif # PLATFORM |
89 |
||
90 |
# |
|
91 |
# Resources |
|
92 |
# |
|
93 |
LOCALE_SET_DEFINITION = jre |
|
94 |
RESOURCE_BUNDLES_COMPILED_PROPERTIES = sun/management/resources/agent.properties |
|
95 |
||
96 |
# |
|
97 |
# Find C source files |
|
98 |
# |
|
99 |
vpath %.c $(SHARE_SRC)/native/sun/management |
|
100 |
vpath %.c $(PLATFORM_SRC)/native/sun/management |
|
101 |
vpath %.c $(PLATFORM_SRC)/native/com/sun/management |
|
102 |
||
103 |
# |
|
104 |
# Access to management.h |
|
105 |
# |
|
106 |
||
107 |
OTHER_INCLUDES += \ |
|
108 |
-I$(SHARE_SRC)/native/sun/management |
|
109 |
||
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 | 113 |
endif |
114 |
||
115 |
# |
|
116 |
# Library to compile. |
|
117 |
# |
|
118 |
include $(BUILDDIR)/common/Library.gmk |
|
119 |
||
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 | 123 |
|
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 | 126 |
|
127 |
build: $(AGENTJAR) |
|
128 |
||
129 |
clean clobber:: |
|
130 |
$(RM) -r $(CLASSDESTDIR)/java/management |
|
131 |
$(RM) -r $(CLASSDESTDIR)/sun/management |
|
132 |
$(RM) $(TEMPDIR)/manifest $(AGENTJAR) |
|
133 |