Makefile revision 2362
220N/A#
220N/A# Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
220N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
220N/A#
220N/A# This code is free software; you can redistribute it and/or modify it
220N/A# under the terms of the GNU General Public License version 2 only, as
220N/A# published by the Free Software Foundation. Oracle designates this
220N/A# particular file as subject to the "Classpath" exception as provided
220N/A# by Oracle in the LICENSE file that accompanied this code.
220N/A#
220N/A# This code is distributed in the hope that it will be useful, but WITHOUT
220N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
220N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
220N/A# version 2 for more details (a copy is included in the LICENSE file that
220N/A# accompanied this code).
220N/A#
220N/A# You should have received a copy of the GNU General Public License version
220N/A# 2 along with this work; if not, write to the Free Software Foundation,
220N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
220N/A#
220N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
220N/A# or visit www.oracle.com if you need additional information or have any
3817N/A# questions.
220N/A#
220N/A
220N/A#
220N/A# Makefile for building RMI stubs of JMX Remote
220N/A#
220N/A
220N/ABUILDDIR = ../../..
220N/APACKAGE = javax.management
844N/APRODUCT = sun
844N/Ainclude $(BUILDDIR)/common/Defs.gmk
220N/A
1258N/A#
220N/A# Files to compile
2899N/A#
2899N/A
3817N/A# NO java files to compile: already compiled in javax/management/Makefile
3817N/A
3817N/A# Note : some targets are double colon rules and some single colon rules
220N/A# within common included gmk files : that is why the following for loop
220N/A# has been duplicated.
220N/A
514N/A# When building the openjdk, build snmp only if importing binary plugs,
514N/Aifdef OPENJDK
514N/A ifeq ($(IMPORT_BINARY_PLUGS),true)
220N/A SUBDIRS = snmp
220N/A endif
220N/Aelse
220N/A SUBDIRS = snmp
220N/Aendif
220N/A
220N/Ainclude $(BUILDDIR)/common/Subdirs.gmk
220N/A
220N/Aall build:
220N/A $(SUBDIRS-loop)
220N/A
220N/Aclean clobber::
220N/A $(SUBDIRS-loop)
220N/A
220N/A#
220N/A# Rules
220N/A#
220N/Ainclude $(BUILDDIR)/common/Classes.gmk
220N/A
220N/Abuild: stubs
1328N/A
5074N/A#
220N/A# Clean up internal-use-only package.
220N/A#
220N/Aclean ::
220N/A $(RM) -r $(CLASSDESTDIR)/com/sun/jmx \
220N/A $(CLASSDESTDIR)/com/sun/management/jmx \
220N/A $(CLASSDESTDIR)/org/omg/stub/javax/management/remote/rmi \
220N/A
220N/A
220N/A#
220N/A# The remainder of this makefile contains defs and rules
220N/A# for generating RMI stubs.
220N/A# With inspiration from com/sun/jndi/rmi/registry
220N/A#
220N/A
220N/A#
220N/A# Full class names of implementations requiring stubs
220N/A#
220N/AREMOTE_impls = \
220N/A javax.management.remote.rmi.RMIConnectionImpl \
220N/A javax.management.remote.rmi.RMIServerImpl \
220N/A
3477N/A
3477N/AREMOTE_files = $(subst .,/,$(REMOTE_impls))
220N/AFILES_stubs = $(REMOTE_files:%=$(CLASSDESTDIR)/%_Stub.class)
220N/AFILES_ties = $(subst javax/management/remote/rmi/,javax/management/remote/rmi/_,$(REMOTE_files:%=$(CLASSDESTDIR)/%_Tie.class))
220N/A
220N/A
220N/A#
220N/A# Compile stubs and skeletons for remote implementations
4337N/A#
4337N/A# Keep generated RMI/JRMP Stub source files and copy them to GENSRCDIR
220N/A# so that javadoc can include them in the API (4997471)
3817N/A#
3817N/A# For RMI/IIOP call rmic a second time with -standardPackage option
3817N/A# so that *_tie classes are generated in package without the prefix
3817N/A# org.omg.stub (6375696)
3817N/A#
3817N/A$(CLASSDESTDIR)/%_Stub.class: $(CLASSDESTDIR)/%.class
3817N/A $(prep-target)
3817N/A $(RMIC) -classpath "$(CLASSDESTDIR)" \
3817N/A -d $(CLASSDESTDIR) \
3817N/A -v1.2 \
3817N/A -keepgenerated \
3817N/A $(subst /,.,$(<:$(CLASSDESTDIR)/%.class=%))
3817N/A $(MKDIR) -p $(@D:$(CLASSDESTDIR)/%=$(GENSRCDIR)/%)
3817N/A $(CP) $(@:%.class=%.java) \
3817N/A $(@D:$(CLASSDESTDIR)/%=$(GENSRCDIR)/%)
3817N/A $(RMIC) -classpath "$(CLASSDESTDIR)" \
3817N/A -d $(CLASSDESTDIR) \
-iiop -v1.2 \
$(subst /,.,$(<:$(CLASSDESTDIR)/%.class=%))
$(RMIC) $(HOTSPOT_INTERPRETER_FLAG) -classpath "$(CLASSDESTDIR)" \
-d $(CLASSDESTDIR) \
-iiop -v1.2 \
-standardPackage \
$(subst /,.,$(<:$(CLASSDESTDIR)/%.class=%))
@$(java-vm-cleanup)
stubs: $(FILES_stubs)