annotate make/com/sun/corba/se/sources/Makefile @ 18:6e0cf0dc59e5

6734545: Corrections to missing explicit corba sources on javac compile lines Reviewed-by: tbell
author ohair
date Wed, 06 Aug 2008 14:30:28 -0700
parents 55540e827aef
children 59d5848bdede
rev   line source
duke@0 1 #
duke@0 2 # Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation. Sun designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
duke@0 9 # by Sun in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
duke@0 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 23 # have any questions.
duke@0 24 #
duke@0 25
duke@0 26 BUILDDIR = ../../../../..
duke@0 27
duke@0 28 PACKAGE = com.sun.corba.se
duke@0 29 PRODUCT = org
duke@0 30
duke@0 31 include $(BUILDDIR)/common/Defs.gmk
duke@0 32
duke@0 33 #
duke@0 34 # Rules
duke@0 35 #
duke@0 36 all: build
duke@0 37
duke@0 38 build: portableactivation.idl.compile logwrapper.generate logresource.generate
duke@0 39
duke@0 40 clean clobber:: portableactivation.idl.clean
duke@0 41
duke@0 42 #
duke@0 43 # Files
duke@0 44 #
duke@0 45 CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/
duke@0 46 include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_PortableActivationIDL.jmk
duke@0 47 include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_impl_logging.jmk
duke@0 48
ohair@18 49 FILES_java += com/sun/corba/se/org/omg/CORBA/ORB.java
ohair@18 50
duke@0 51 #
duke@0 52 # Dirs
duke@0 53 #
duke@0 54
duke@0 55 SRC_DIR = $(SHARE_SRC)/classes
duke@0 56 CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer
duke@0 57 PI_IDL_DIR = $(SRC_DIR)/org/omg/PortableInterceptor
duke@0 58
duke@0 59 ACTIVATIONFILEDIR = $(GENSRCDIR)/com/sun/corba/se/spi/activation
duke@0 60 PORTABLEACTIVATIONFILEDIR = $(GENSRCDIR)/com/sun/corba/se/PortableActivationIDL
duke@0 61 LOG_GENDIRECTORY = $(GENSRCDIR)/com/sun/corba/se/impl/logging
duke@0 62
duke@0 63 #
duke@0 64 # IDLs
duke@0 65 #
duke@0 66
duke@0 67 ACTIVATION.IDL = $(SRC_DIR)/com/sun/corba/se/spi/activation/activation.idl
duke@0 68 PORTABLEACTIVATION.IDL = $(SRC_DIR)/com/sun/corba/se/PortableActivationIDL/activation.idl
duke@0 69
duke@0 70
duke@0 71 #
duke@0 72 # .mc files
duke@0 73 #
duke@0 74 ACTIVATION.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Activation.mc
duke@0 75 IOR.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/IOR.mc
duke@0 76 INTERCEPTORS.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Interceptors.mc
duke@0 77 NAMING.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Naming.mc
duke@0 78 OMG.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/OMG.mc
duke@0 79 ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc
duke@0 80 POA.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/POA.mc
duke@0 81 UTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Util.mc
duke@0 82
duke@0 83 MC_GENERATE_CLASS = $(SRC_DIR)/com/sun/tools/corba/se/logutil/scripts/mc.scm -main main make-class
duke@0 84 MC_GENERATE_LOG_RB = $(SRC_DIR)/com/sun/tools/corba/se/logutil/scripts/mc.scm -main main make-resource
duke@0 85
duke@0 86 JSCHEME_GENERATE_CLASS = $(BOOT_JAVA_CMD) jscheme.REPL $(MC_GENERATE_CLASS)
duke@0 87 JSCHEME_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) jscheme.REPL $(MC_GENERATE_LOG_RB)
duke@0 88
duke@0 89
duke@0 90 #
duke@0 91 # Activation
duke@0 92 #
duke@0 93
duke@0 94 ACTIVATIONFILES = $(com_sun_corba_se_spi_activation_java:%=$(GENSRCDIR)/%)
duke@0 95
duke@0 96 $(ACTIVATIONFILES): $(ACTIVATION.IDL)
duke@0 97 $(IDLJ) -td $(GENSRCDIR) -i $(ACTIVATIONFILEDIR) -fall -oldImplBase -pkgPrefix activation com.sun.corba.se.spi $(ACTIVATION.IDL)
duke@0 98
duke@0 99 activation.idl.compile: $(ACTIVATIONFILES)
duke@0 100
duke@0 101 activation.idl.clean:
duke@0 102 $(RM) -f $(ACTIVATIONFILES)
duke@0 103
duke@0 104 #
duke@0 105 # PortableActivationIDL
duke@0 106 #
duke@0 107
duke@0 108 PORTABLEACTIVATIONFILES = $(com_sun_corba_se_PortableActivationIDL_java:%=$(GENSRCDIR)/%)
duke@0 109
duke@0 110 PORTABLEACTIVATION_INCLUDES = -i $(CORBA_IDL_DIR) -i $(PI_IDL_DIR)
duke@0 111
duke@0 112 PORTABLEACTIVATION_PKG_PREFIXES = -pkgPrefix PortableInterceptor org.omg \
duke@0 113 -pkgPrefix PortableActivationIDL com.sun.corba.se \
duke@0 114 -pkgPrefix Dynamic org.omg \
duke@0 115 -pkgPrefix IOP org.omg
duke@0 116
duke@0 117 # REVISIT: remove -oldImplBase
duke@0 118 $(PORTABLEACTIVATIONFILES): $(PORTABLEACTIVATION.IDL)
duke@0 119 $(IDLJ) -td $(GENSRCDIR) $(PORTABLEACTIVATION_INCLUDES) $(PORTABLEACTIVATION_PKG_PREFIXES) -fall -oldImplBase -corba 3.0 -D CORBA3 $(PORTABLEACTIVATION.IDL)
duke@0 120
duke@0 121 portableactivation.idl.compile: $(PORTABLEACTIVATIONFILES)
duke@0 122
duke@0 123 portableactivation.idl.clean:
duke@0 124 $(RM) -f $(PORTABLEACTIVATIONFILES)
duke@0 125
duke@0 126 #
duke@0 127 # Generate LogWrapper classes
duke@0 128 #
duke@0 129 logwrapper.generate: \
duke@0 130 $(LOG_GENDIRECTORY)/ActivationSystemException.java \
duke@0 131 $(LOG_GENDIRECTORY)/IORSystemException.java \
duke@0 132 $(LOG_GENDIRECTORY)/InterceptorsSystemException.java \
duke@0 133 $(LOG_GENDIRECTORY)/NamingSystemException.java \
duke@0 134 $(LOG_GENDIRECTORY)/OMGSystemException.java \
duke@0 135 $(LOG_GENDIRECTORY)/ORBUtilSystemException.java \
duke@0 136 $(LOG_GENDIRECTORY)/POASystemException.java \
duke@0 137 $(LOG_GENDIRECTORY)/UtilSystemException.java
duke@0 138
duke@0 139 $(LOG_GENDIRECTORY)/ActivationSystemException.java : $(ACTIVATION.MC)
duke@0 140 $(prep-target)
duke@0 141 $(JSCHEME_GENERATE_CLASS) $(ACTIVATION.MC) $(LOG_GENDIRECTORY)
duke@0 142
duke@0 143 $(LOG_GENDIRECTORY)/IORSystemException.java : $(IOR.MC)
duke@0 144 $(prep-target)
duke@0 145 $(JSCHEME_GENERATE_CLASS) $(IOR.MC) $(LOG_GENDIRECTORY)
duke@0 146
duke@0 147 $(LOG_GENDIRECTORY)/InterceptorsSystemException.java : $(INTERCEPTORS.MC)
duke@0 148 $(prep-target)
duke@0 149 $(JSCHEME_GENERATE_CLASS) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY)
duke@0 150
duke@0 151 $(LOG_GENDIRECTORY)/NamingSystemException.java : $(NAMING.MC)
duke@0 152 $(prep-target)
duke@0 153 $(JSCHEME_GENERATE_CLASS) $(NAMING.MC) $(LOG_GENDIRECTORY)
duke@0 154
duke@0 155 $(LOG_GENDIRECTORY)/OMGSystemException.java : $(OMG.MC)
duke@0 156 $(prep-target)
duke@0 157 $(JSCHEME_GENERATE_CLASS) $(OMG.MC) $(LOG_GENDIRECTORY)
duke@0 158
duke@0 159 $(LOG_GENDIRECTORY)/ORBUtilSystemException.java : $(ORBUTIL.MC)
duke@0 160 $(prep-target)
duke@0 161 $(JSCHEME_GENERATE_CLASS) $(ORBUTIL.MC) $(LOG_GENDIRECTORY)
duke@0 162
duke@0 163 $(LOG_GENDIRECTORY)/POASystemException.java : $(POA.MC)
duke@0 164 $(prep-target)
duke@0 165 $(JSCHEME_GENERATE_CLASS) $(POA.MC) $(LOG_GENDIRECTORY)
duke@0 166
duke@0 167 $(LOG_GENDIRECTORY)/UtilSystemException.java : $(UTIL.MC)
duke@0 168 $(prep-target)
duke@0 169 $(JSCHEME_GENERATE_CLASS) $(UTIL.MC) $(LOG_GENDIRECTORY)
duke@0 170
duke@0 171 logresource.generate: $(LOG_GENDIRECTORY)/LogStrings.properties
duke@0 172
duke@0 173 $(LOG_GENDIRECTORY)/LogStrings.properties: \
duke@0 174 $(LOG_GENDIRECTORY)/ActivationSystemException.resource \
duke@0 175 $(LOG_GENDIRECTORY)/IORSystemException.resource \
duke@0 176 $(LOG_GENDIRECTORY)/InterceptorsSystemException.resource \
duke@0 177 $(LOG_GENDIRECTORY)/NamingSystemException.resource \
duke@0 178 $(LOG_GENDIRECTORY)/OMGSystemException.resource \
duke@0 179 $(LOG_GENDIRECTORY)/ORBUtilSystemException.resource \
duke@0 180 $(LOG_GENDIRECTORY)/POASystemException.resource \
duke@0 181 $(LOG_GENDIRECTORY)/UtilSystemException.resource
duke@0 182 $(CAT) $(LOG_GENDIRECTORY)/*.resource > $(LOG_GENDIRECTORY)/LogStrings.properties
duke@0 183
duke@0 184 $(LOG_GENDIRECTORY)/ActivationSystemException.resource : $(ACTIVATION.MC)
duke@0 185 $(prep-target)
duke@0 186 $(JSCHEME_GENERATE_LOG_RB) $(ACTIVATION.MC) $(LOG_GENDIRECTORY)
duke@0 187
duke@0 188 $(LOG_GENDIRECTORY)/IORSystemException.resource : $(IOR.MC)
duke@0 189 $(prep-target)
duke@0 190 $(JSCHEME_GENERATE_LOG_RB) $(IOR.MC) $(LOG_GENDIRECTORY)
duke@0 191
duke@0 192 $(LOG_GENDIRECTORY)/InterceptorsSystemException.resource : $(INTERCEPTORS.MC)
duke@0 193 $(prep-target)
duke@0 194 $(JSCHEME_GENERATE_LOG_RB) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY)
duke@0 195
duke@0 196 $(LOG_GENDIRECTORY)/NamingSystemException.resource : $(NAMING.MC)
duke@0 197 $(prep-target)
duke@0 198 $(JSCHEME_GENERATE_LOG_RB) $(NAMING.MC) $(LOG_GENDIRECTORY)
duke@0 199
duke@0 200 $(LOG_GENDIRECTORY)/OMGSystemException.resource : $(OMG.MC)
duke@0 201 $(prep-target)
duke@0 202 $(JSCHEME_GENERATE_LOG_RB) $(OMG.MC) $(LOG_GENDIRECTORY)
duke@0 203
duke@0 204 $(LOG_GENDIRECTORY)/ORBUtilSystemException.resource : $(ORBUTIL.MC)
duke@0 205 $(prep-target)
duke@0 206 $(JSCHEME_GENERATE_LOG_RB) $(ORBUTIL.MC) $(LOG_GENDIRECTORY)
duke@0 207
duke@0 208 $(LOG_GENDIRECTORY)/POASystemException.resource : $(POA.MC)
duke@0 209 $(prep-target)
duke@0 210 $(JSCHEME_GENERATE_LOG_RB) $(POA.MC) $(LOG_GENDIRECTORY)
duke@0 211
duke@0 212 $(LOG_GENDIRECTORY)/UtilSystemException.resource : $(UTIL.MC)
duke@0 213 $(prep-target)
duke@0 214 $(JSCHEME_GENERATE_LOG_RB) $(UTIL.MC) $(LOG_GENDIRECTORY)
duke@0 215
duke@0 216
duke@0 217 .PHONY: all build clean clobber \
duke@0 218 activation.idl.compile activation.idl.clean \
duke@0 219 portableactivation.idl.compile portableactivation.idl.clean
duke@0 220
duke@0 221 #
duke@0 222 # Include
duke@0 223 #
duke@0 224 include $(BUILDDIR)/common/Rules.gmk