author | ohair |
Tue, 25 May 2010 15:58:33 -0700 | |
changeset 5506 | 202f599c92aa |
parent 4917 | c98da2209f8c |
child 7666 | 7b994e3dd41d |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 2003, 2006, 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 |
||
26 |
# |
|
27 |
# Makefile for building RMI stubs of JMX Remote |
|
28 |
# |
|
29 |
||
30 |
BUILDDIR = ../../.. |
|
31 |
PACKAGE = javax.management |
|
32 |
PRODUCT = sun |
|
33 |
include $(BUILDDIR)/common/Defs.gmk |
|
34 |
||
35 |
# |
|
36 |
# Files to compile |
|
37 |
# |
|
38 |
||
39 |
# NO java files to compile: already compiled in javax/management/Makefile |
|
40 |
||
41 |
# Note : some targets are double colon rules and some single colon rules |
|
42 |
# within common included gmk files : that is why the following for loop |
|
43 |
# has been duplicated. |
|
2285
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
44 |
|
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
45 |
# When building the openjdk, build snmp only if importing binary plugs, |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
46 |
ifdef OPENJDK |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
47 |
ifeq ($(IMPORT_BINARY_PLUGS),true) |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
48 |
SUBDIRS = snmp |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
49 |
endif |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
50 |
else |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
51 |
SUBDIRS = snmp |
37fdbed8178f
6661448: Make the SNMP agent optional when OPENJDK=true and IMPORT_BINARY_PLUGS=false
dfuchs
parents:
2
diff
changeset
|
52 |
endif |
2 | 53 |
|
4917
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
2285
diff
changeset
|
54 |
include $(BUILDDIR)/common/Subdirs.gmk |
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
2285
diff
changeset
|
55 |
|
2 | 56 |
all build: |
57 |
$(SUBDIRS-loop) |
|
58 |
||
59 |
clean clobber:: |
|
60 |
$(SUBDIRS-loop) |
|
61 |
||
62 |
# |
|
63 |
# Rules |
|
64 |
# |
|
65 |
include $(BUILDDIR)/common/Classes.gmk |
|
66 |
||
67 |
build: stubs |
|
68 |
||
69 |
# |
|
70 |
# Clean up internal-use-only package. |
|
71 |
# |
|
72 |
clean :: |
|
73 |
$(RM) -r $(CLASSDESTDIR)/com/sun/jmx \ |
|
74 |
$(CLASSDESTDIR)/com/sun/management/jmx \ |
|
75 |
$(CLASSDESTDIR)/org/omg/stub/javax/management/remote/rmi \ |
|
76 |
||
77 |
||
78 |
# |
|
79 |
# The remainder of this makefile contains defs and rules |
|
80 |
# for generating RMI stubs. |
|
81 |
# With inspiration from com/sun/jndi/rmi/registry |
|
82 |
# |
|
83 |
||
84 |
# |
|
85 |
# Full class names of implementations requiring stubs |
|
86 |
# |
|
87 |
REMOTE_impls = \ |
|
88 |
javax.management.remote.rmi.RMIConnectionImpl \ |
|
89 |
javax.management.remote.rmi.RMIServerImpl \ |
|
90 |
||
91 |
||
92 |
REMOTE_files = $(subst .,/,$(REMOTE_impls)) |
|
93 |
FILES_stubs = $(REMOTE_files:%=$(CLASSDESTDIR)/%_Stub.class) |
|
94 |
FILES_ties = $(subst javax/management/remote/rmi/,javax/management/remote/rmi/_,$(REMOTE_files:%=$(CLASSDESTDIR)/%_Tie.class)) |
|
95 |
||
96 |
||
97 |
# |
|
98 |
# Compile stubs and skeletons for remote implementations |
|
99 |
# |
|
100 |
# Keep generated RMI/JRMP Stub source files and copy them to GENSRCDIR |
|
101 |
# so that javadoc can include them in the API (4997471) |
|
102 |
# |
|
103 |
# For RMI/IIOP call rmic a second time with -standardPackage option |
|
104 |
# so that *_tie classes are generated in package without the prefix |
|
105 |
# org.omg.stub (6375696) |
|
106 |
# |
|
107 |
$(CLASSDESTDIR)/%_Stub.class: $(CLASSDESTDIR)/%.class |
|
108 |
$(prep-target) |
|
109 |
$(RMIC) -classpath "$(CLASSDESTDIR)" \ |
|
110 |
-d $(CLASSDESTDIR) \ |
|
111 |
-v1.2 \ |
|
112 |
-keepgenerated \ |
|
113 |
$(subst /,.,$(<:$(CLASSDESTDIR)/%.class=%)) |
|
114 |
$(MKDIR) -p $(@D:$(CLASSDESTDIR)/%=$(GENSRCDIR)/%) |
|
115 |
$(CP) $(@:%.class=%.java) \ |
|
116 |
$(@D:$(CLASSDESTDIR)/%=$(GENSRCDIR)/%) |
|
117 |
$(RMIC) -classpath "$(CLASSDESTDIR)" \ |
|
118 |
-d $(CLASSDESTDIR) \ |
|
119 |
-iiop -v1.2 \ |
|
120 |
$(subst /,.,$(<:$(CLASSDESTDIR)/%.class=%)) |
|
121 |
$(RMIC) $(HOTSPOT_INTERPRETER_FLAG) -classpath "$(CLASSDESTDIR)" \ |
|
122 |
-d $(CLASSDESTDIR) \ |
|
123 |
-iiop -v1.2 \ |
|
124 |
-standardPackage \ |
|
125 |
$(subst /,.,$(<:$(CLASSDESTDIR)/%.class=%)) |
|
126 |
@$(java-vm-cleanup) |
|
127 |
||
128 |
stubs: $(FILES_stubs) |