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