author | ohair |
Tue, 25 May 2010 15:52:11 -0700 | |
changeset 5555 | b2b5ed3f0d0d |
parent 2711 | 56edbef7d472 |
permissions | -rw-r--r-- |
4 | 1 |
# |
5555 | 2 |
# Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved. |
4 | 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 |
|
5555 | 7 |
# published by the Free Software Foundation. Oracle designates this |
4 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5555 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
4 | 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 |
# |
|
5555 | 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. |
|
4 | 24 |
# |
25 |
||
26 |
BUILDDIR = ../../../../.. |
|
27 |
||
28 |
PACKAGE = com.sun.corba.se |
|
29 |
PRODUCT = org |
|
30 |
||
31 |
include $(BUILDDIR)/common/Defs.gmk |
|
32 |
||
33 |
# |
|
34 |
# Rules |
|
35 |
# |
|
36 |
all: build |
|
37 |
||
38 |
build: portableactivation.idl.compile logwrapper.generate logresource.generate |
|
39 |
||
40 |
clean clobber:: portableactivation.idl.clean |
|
41 |
||
42 |
# |
|
43 |
# Files |
|
44 |
# |
|
45 |
CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/ |
|
46 |
include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_PortableActivationIDL.jmk |
|
47 |
include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_impl_logging.jmk |
|
48 |
||
2711
56edbef7d472
6529590: flaw in com.sun.corba.se.impl.presentation.rmi.IDLNameTranslatorImpl
tbell
parents:
2306
diff
changeset
|
49 |
FILES_java += com/sun/corba/se/org/omg/CORBA/ORB.java |
56edbef7d472
6529590: flaw in com.sun.corba.se.impl.presentation.rmi.IDLNameTranslatorImpl
tbell
parents:
2306
diff
changeset
|
50 |
|
4 | 51 |
# |
52 |
# Dirs |
|
53 |
# |
|
54 |
||
55 |
SRC_DIR = $(SHARE_SRC)/classes |
|
56 |
CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer |
|
57 |
PI_IDL_DIR = $(SRC_DIR)/org/omg/PortableInterceptor |
|
58 |
||
59 |
ACTIVATIONFILEDIR = $(GENSRCDIR)/com/sun/corba/se/spi/activation |
|
60 |
PORTABLEACTIVATIONFILEDIR = $(GENSRCDIR)/com/sun/corba/se/PortableActivationIDL |
|
61 |
LOG_GENDIRECTORY = $(GENSRCDIR)/com/sun/corba/se/impl/logging |
|
62 |
||
63 |
# |
|
64 |
# IDLs |
|
65 |
# |
|
66 |
||
67 |
ACTIVATION.IDL = $(SRC_DIR)/com/sun/corba/se/spi/activation/activation.idl |
|
68 |
PORTABLEACTIVATION.IDL = $(SRC_DIR)/com/sun/corba/se/PortableActivationIDL/activation.idl |
|
69 |
||
70 |
||
71 |
# |
|
72 |
# .mc files |
|
73 |
# |
|
74 |
ACTIVATION.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Activation.mc |
|
75 |
IOR.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/IOR.mc |
|
76 |
INTERCEPTORS.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Interceptors.mc |
|
77 |
NAMING.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Naming.mc |
|
78 |
OMG.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/OMG.mc |
|
79 |
ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc |
|
80 |
POA.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/POA.mc |
|
81 |
UTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Util.mc |
|
82 |
||
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
2192
diff
changeset
|
83 |
MC_GENERATE_CLASS = make-class |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
2192
diff
changeset
|
84 |
MC_GENERATE_LOG_RB = make-resource |
4 | 85 |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
2192
diff
changeset
|
86 |
JSCHEME_GENERATE_CLASS = $(BOOT_JAVA_CMD) com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_CLASS) |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
2192
diff
changeset
|
87 |
JSCHEME_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_LOG_RB) |
4 | 88 |
|
89 |
||
90 |
# |
|
91 |
# Activation |
|
92 |
# |
|
93 |
||
94 |
ACTIVATIONFILES = $(com_sun_corba_se_spi_activation_java:%=$(GENSRCDIR)/%) |
|
95 |
||
96 |
$(ACTIVATIONFILES): $(ACTIVATION.IDL) |
|
97 |
$(IDLJ) -td $(GENSRCDIR) -i $(ACTIVATIONFILEDIR) -fall -oldImplBase -pkgPrefix activation com.sun.corba.se.spi $(ACTIVATION.IDL) |
|
98 |
||
99 |
activation.idl.compile: $(ACTIVATIONFILES) |
|
100 |
||
101 |
activation.idl.clean: |
|
102 |
$(RM) -f $(ACTIVATIONFILES) |
|
103 |
||
104 |
# |
|
105 |
# PortableActivationIDL |
|
106 |
# |
|
107 |
||
108 |
PORTABLEACTIVATIONFILES = $(com_sun_corba_se_PortableActivationIDL_java:%=$(GENSRCDIR)/%) |
|
109 |
||
110 |
PORTABLEACTIVATION_INCLUDES = -i $(CORBA_IDL_DIR) -i $(PI_IDL_DIR) |
|
111 |
||
112 |
PORTABLEACTIVATION_PKG_PREFIXES = -pkgPrefix PortableInterceptor org.omg \ |
|
113 |
-pkgPrefix PortableActivationIDL com.sun.corba.se \ |
|
114 |
-pkgPrefix Dynamic org.omg \ |
|
115 |
-pkgPrefix IOP org.omg |
|
116 |
||
117 |
# REVISIT: remove -oldImplBase |
|
118 |
$(PORTABLEACTIVATIONFILES): $(PORTABLEACTIVATION.IDL) |
|
119 |
$(IDLJ) -td $(GENSRCDIR) $(PORTABLEACTIVATION_INCLUDES) $(PORTABLEACTIVATION_PKG_PREFIXES) -fall -oldImplBase -corba 3.0 -D CORBA3 $(PORTABLEACTIVATION.IDL) |
|
120 |
||
121 |
portableactivation.idl.compile: $(PORTABLEACTIVATIONFILES) |
|
122 |
||
123 |
portableactivation.idl.clean: |
|
124 |
$(RM) -f $(PORTABLEACTIVATIONFILES) |
|
125 |
||
126 |
# |
|
127 |
# Generate LogWrapper classes |
|
128 |
# |
|
129 |
logwrapper.generate: \ |
|
130 |
$(LOG_GENDIRECTORY)/ActivationSystemException.java \ |
|
131 |
$(LOG_GENDIRECTORY)/IORSystemException.java \ |
|
132 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.java \ |
|
133 |
$(LOG_GENDIRECTORY)/NamingSystemException.java \ |
|
134 |
$(LOG_GENDIRECTORY)/OMGSystemException.java \ |
|
135 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.java \ |
|
136 |
$(LOG_GENDIRECTORY)/POASystemException.java \ |
|
137 |
$(LOG_GENDIRECTORY)/UtilSystemException.java |
|
138 |
||
139 |
$(LOG_GENDIRECTORY)/ActivationSystemException.java : $(ACTIVATION.MC) |
|
140 |
$(prep-target) |
|
141 |
$(JSCHEME_GENERATE_CLASS) $(ACTIVATION.MC) $(LOG_GENDIRECTORY) |
|
142 |
||
143 |
$(LOG_GENDIRECTORY)/IORSystemException.java : $(IOR.MC) |
|
144 |
$(prep-target) |
|
145 |
$(JSCHEME_GENERATE_CLASS) $(IOR.MC) $(LOG_GENDIRECTORY) |
|
146 |
||
147 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.java : $(INTERCEPTORS.MC) |
|
148 |
$(prep-target) |
|
149 |
$(JSCHEME_GENERATE_CLASS) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY) |
|
150 |
||
151 |
$(LOG_GENDIRECTORY)/NamingSystemException.java : $(NAMING.MC) |
|
152 |
$(prep-target) |
|
153 |
$(JSCHEME_GENERATE_CLASS) $(NAMING.MC) $(LOG_GENDIRECTORY) |
|
154 |
||
155 |
$(LOG_GENDIRECTORY)/OMGSystemException.java : $(OMG.MC) |
|
156 |
$(prep-target) |
|
157 |
$(JSCHEME_GENERATE_CLASS) $(OMG.MC) $(LOG_GENDIRECTORY) |
|
158 |
||
159 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.java : $(ORBUTIL.MC) |
|
160 |
$(prep-target) |
|
161 |
$(JSCHEME_GENERATE_CLASS) $(ORBUTIL.MC) $(LOG_GENDIRECTORY) |
|
162 |
||
163 |
$(LOG_GENDIRECTORY)/POASystemException.java : $(POA.MC) |
|
164 |
$(prep-target) |
|
165 |
$(JSCHEME_GENERATE_CLASS) $(POA.MC) $(LOG_GENDIRECTORY) |
|
166 |
||
167 |
$(LOG_GENDIRECTORY)/UtilSystemException.java : $(UTIL.MC) |
|
168 |
$(prep-target) |
|
169 |
$(JSCHEME_GENERATE_CLASS) $(UTIL.MC) $(LOG_GENDIRECTORY) |
|
170 |
||
171 |
logresource.generate: $(LOG_GENDIRECTORY)/LogStrings.properties |
|
172 |
||
173 |
$(LOG_GENDIRECTORY)/LogStrings.properties: \ |
|
174 |
$(LOG_GENDIRECTORY)/ActivationSystemException.resource \ |
|
175 |
$(LOG_GENDIRECTORY)/IORSystemException.resource \ |
|
176 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.resource \ |
|
177 |
$(LOG_GENDIRECTORY)/NamingSystemException.resource \ |
|
178 |
$(LOG_GENDIRECTORY)/OMGSystemException.resource \ |
|
179 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.resource \ |
|
180 |
$(LOG_GENDIRECTORY)/POASystemException.resource \ |
|
181 |
$(LOG_GENDIRECTORY)/UtilSystemException.resource |
|
182 |
$(CAT) $(LOG_GENDIRECTORY)/*.resource > $(LOG_GENDIRECTORY)/LogStrings.properties |
|
183 |
||
184 |
$(LOG_GENDIRECTORY)/ActivationSystemException.resource : $(ACTIVATION.MC) |
|
185 |
$(prep-target) |
|
186 |
$(JSCHEME_GENERATE_LOG_RB) $(ACTIVATION.MC) $(LOG_GENDIRECTORY) |
|
187 |
||
188 |
$(LOG_GENDIRECTORY)/IORSystemException.resource : $(IOR.MC) |
|
189 |
$(prep-target) |
|
190 |
$(JSCHEME_GENERATE_LOG_RB) $(IOR.MC) $(LOG_GENDIRECTORY) |
|
191 |
||
192 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.resource : $(INTERCEPTORS.MC) |
|
193 |
$(prep-target) |
|
194 |
$(JSCHEME_GENERATE_LOG_RB) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY) |
|
195 |
||
196 |
$(LOG_GENDIRECTORY)/NamingSystemException.resource : $(NAMING.MC) |
|
197 |
$(prep-target) |
|
198 |
$(JSCHEME_GENERATE_LOG_RB) $(NAMING.MC) $(LOG_GENDIRECTORY) |
|
199 |
||
200 |
$(LOG_GENDIRECTORY)/OMGSystemException.resource : $(OMG.MC) |
|
201 |
$(prep-target) |
|
202 |
$(JSCHEME_GENERATE_LOG_RB) $(OMG.MC) $(LOG_GENDIRECTORY) |
|
203 |
||
204 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.resource : $(ORBUTIL.MC) |
|
205 |
$(prep-target) |
|
206 |
$(JSCHEME_GENERATE_LOG_RB) $(ORBUTIL.MC) $(LOG_GENDIRECTORY) |
|
207 |
||
208 |
$(LOG_GENDIRECTORY)/POASystemException.resource : $(POA.MC) |
|
209 |
$(prep-target) |
|
210 |
$(JSCHEME_GENERATE_LOG_RB) $(POA.MC) $(LOG_GENDIRECTORY) |
|
211 |
||
212 |
$(LOG_GENDIRECTORY)/UtilSystemException.resource : $(UTIL.MC) |
|
213 |
$(prep-target) |
|
214 |
$(JSCHEME_GENERATE_LOG_RB) $(UTIL.MC) $(LOG_GENDIRECTORY) |
|
215 |
||
216 |
||
217 |
.PHONY: all build clean clobber \ |
|
218 |
activation.idl.compile activation.idl.clean \ |
|
219 |
portableactivation.idl.compile portableactivation.idl.clean |
|
220 |
||
221 |
# |
|
222 |
# Include |
|
223 |
# |
|
224 |
include $(BUILDDIR)/common/Rules.gmk |