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