author | martin |
Mon, 07 Dec 2009 15:32:26 -0800 | |
changeset 4354 | 3a70dde80b3b |
parent 2306 | 70ca22b481e1 |
child 5555 | b2b5ed3f0d0d |
permissions | -rw-r--r-- |
4 | 1 |
# |
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
2 |
# Copyright 2003-2009 Sun Microsystems, Inc. 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 |
|
7 |
# published by the Free Software Foundation. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun in the LICENSE file that accompanied this code. |
|
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 |
# |
|
21 |
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any questions. |
|
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 |
build: logwrapper.generate logresource.generate activation.idl.compile portableactivation.idl.compile |
|
37 |
||
38 |
clean clobber:: activation.idl.clean portableactivation.idl.clean |
|
39 |
||
40 |
# |
|
41 |
# Files |
|
42 |
# |
|
43 |
CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/ |
|
44 |
include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_spi_activation.jmk |
|
45 |
include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_impl_logging.jmk |
|
46 |
include $(CORBA_JMK_DIRECTORY)com_sun_corba_se_PortableActivationIDL.jmk |
|
47 |
||
48 |
# |
|
49 |
# Dirs |
|
50 |
# |
|
51 |
||
52 |
SRC_DIR = $(SHARE_SRC)/classes |
|
53 |
CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer |
|
54 |
PI_IDL_DIR = $(SRC_DIR)/org/omg/PortableInterceptor |
|
55 |
||
56 |
ACTIVATIONFILEDIR = $(GENSRCDIR)/com/sun/corba/se/spi/activation |
|
57 |
LOG_GENDIRECTORY = $(GENSRCDIR)/com/sun/corba/se/impl/logging |
|
58 |
LOG_CLASS_OUTPUTDIRECTORY = $(CLASSBINDIR)/com/sun/corba/se/impl/logging |
|
59 |
LOGSTRINGS_PROPERTIES = LogStrings.properties |
|
60 |
PORTABLEACTIVATIONFILEDIR = $(GENSRCDIR)/com/sun/corba/se/PortableActivationIDL |
|
61 |
||
62 |
# |
|
63 |
# IDLs |
|
64 |
# |
|
65 |
||
66 |
ACTIVATION.IDL = $(SRC_DIR)/com/sun/corba/se/spi/activation/activation.idl |
|
67 |
PORTABLEACTIVATION.IDL = $(SRC_DIR)/com/sun/corba/se/PortableActivationIDL/activation.idl |
|
68 |
||
69 |
ACTIVATION.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Activation.mc |
|
70 |
IOR.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/IOR.mc |
|
71 |
INTERCEPTORS.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Interceptors.mc |
|
72 |
NAMING.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Naming.mc |
|
73 |
OMG.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/OMG.mc |
|
74 |
ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc |
|
75 |
POA.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/POA.mc |
|
76 |
UTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/Util.mc |
|
77 |
||
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
78 |
MC_GENERATE_CLASS = make-class |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
79 |
MC_GENERATE_LOG_RB = make-resource |
4 | 80 |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
81 |
MC_CLASSPATH=$(BUILDTOOLJARDIR)/MC.jar |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
82 |
MCJ_GENERATE_CLASS = $(BOOT_JAVA_CMD) \ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
83 |
-cp "$(MC_CLASSPATH)" 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:
4
diff
changeset
|
84 |
MCJ_GENERATE_LOG_RB = $(BOOT_JAVA_CMD) \ |
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
85 |
-cp "$(MC_CLASSPATH)" com.sun.tools.corba.se.logutil.MC $(MC_GENERATE_LOG_RB) |
4 | 86 |
|
87 |
||
88 |
# |
|
89 |
# Generate LogWrapper classes |
|
90 |
# |
|
91 |
logwrapper.generate: \ |
|
92 |
$(LOG_GENDIRECTORY) \ |
|
93 |
$(LOG_GENDIRECTORY)/ActivationSystemException.java \ |
|
94 |
$(LOG_GENDIRECTORY)/IORSystemException.java \ |
|
95 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.java \ |
|
96 |
$(LOG_GENDIRECTORY)/NamingSystemException.java \ |
|
97 |
$(LOG_GENDIRECTORY)/OMGSystemException.java \ |
|
98 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.java \ |
|
99 |
$(LOG_GENDIRECTORY)/POASystemException.java \ |
|
100 |
$(LOG_GENDIRECTORY)/UtilSystemException.java |
|
101 |
||
102 |
$(LOG_GENDIRECTORY): |
|
103 |
$(MKDIR) -p $(LOG_GENDIRECTORY) |
|
104 |
||
105 |
$(LOG_GENDIRECTORY)/ActivationSystemException.java : $(ACTIVATION.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
106 |
$(MCJ_GENERATE_CLASS) $(ACTIVATION.MC) $(LOG_GENDIRECTORY) |
4 | 107 |
|
108 |
$(LOG_GENDIRECTORY)/IORSystemException.java : $(IOR.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
109 |
$(MCJ_GENERATE_CLASS) $(IOR.MC) $(LOG_GENDIRECTORY) |
4 | 110 |
|
111 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.java : $(INTERCEPTORS.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
112 |
$(MCJ_GENERATE_CLASS) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY) |
4 | 113 |
|
114 |
$(LOG_GENDIRECTORY)/NamingSystemException.java : $(NAMING.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
115 |
$(MCJ_GENERATE_CLASS) $(NAMING.MC) $(LOG_GENDIRECTORY) |
4 | 116 |
|
117 |
$(LOG_GENDIRECTORY)/OMGSystemException.java : $(OMG.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
118 |
$(MCJ_GENERATE_CLASS) $(OMG.MC) $(LOG_GENDIRECTORY) |
4 | 119 |
|
120 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.java : $(ORBUTIL.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
121 |
$(MCJ_GENERATE_CLASS) $(ORBUTIL.MC) $(LOG_GENDIRECTORY) |
4 | 122 |
|
123 |
$(LOG_GENDIRECTORY)/POASystemException.java : $(POA.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
124 |
$(MCJ_GENERATE_CLASS) $(POA.MC) $(LOG_GENDIRECTORY) |
4 | 125 |
|
126 |
$(LOG_GENDIRECTORY)/UtilSystemException.java : $(UTIL.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
127 |
$(MCJ_GENERATE_CLASS) $(UTIL.MC) $(LOG_GENDIRECTORY) |
4 | 128 |
|
129 |
logresource.generate: $(LOG_GENDIRECTORY)/LogStrings.properties |
|
130 |
||
131 |
$(LOG_GENDIRECTORY)/LogStrings.properties: \ |
|
132 |
$(LOG_GENDIRECTORY) \ |
|
133 |
$(LOG_GENDIRECTORY)/ActivationSystemException.resource \ |
|
134 |
$(LOG_GENDIRECTORY)/IORSystemException.resource \ |
|
135 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.resource \ |
|
136 |
$(LOG_GENDIRECTORY)/NamingSystemException.resource \ |
|
137 |
$(LOG_GENDIRECTORY)/OMGSystemException.resource \ |
|
138 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.resource \ |
|
139 |
$(LOG_GENDIRECTORY)/POASystemException.resource \ |
|
140 |
$(LOG_GENDIRECTORY)/UtilSystemException.resource |
|
141 |
$(CAT) $(LOG_GENDIRECTORY)/*.resource > $(LOG_GENDIRECTORY)/LogStrings.properties |
|
142 |
||
143 |
$(LOG_GENDIRECTORY)/ActivationSystemException.resource : $(ACTIVATION.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
144 |
$(MCJ_GENERATE_LOG_RB) $(ACTIVATION.MC) $(LOG_GENDIRECTORY) |
4 | 145 |
|
146 |
$(LOG_GENDIRECTORY)/IORSystemException.resource : $(IOR.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
147 |
$(MCJ_GENERATE_LOG_RB) $(IOR.MC) $(LOG_GENDIRECTORY) |
4 | 148 |
|
149 |
$(LOG_GENDIRECTORY)/InterceptorsSystemException.resource : $(INTERCEPTORS.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
150 |
$(MCJ_GENERATE_LOG_RB) $(INTERCEPTORS.MC) $(LOG_GENDIRECTORY) |
4 | 151 |
|
152 |
$(LOG_GENDIRECTORY)/NamingSystemException.resource : $(NAMING.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
153 |
$(MCJ_GENERATE_LOG_RB) $(NAMING.MC) $(LOG_GENDIRECTORY) |
4 | 154 |
|
155 |
$(LOG_GENDIRECTORY)/OMGSystemException.resource : $(OMG.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
156 |
$(MCJ_GENERATE_LOG_RB) $(OMG.MC) $(LOG_GENDIRECTORY) |
4 | 157 |
|
158 |
$(LOG_GENDIRECTORY)/ORBUtilSystemException.resource : $(ORBUTIL.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
159 |
$(MCJ_GENERATE_LOG_RB) $(ORBUTIL.MC) $(LOG_GENDIRECTORY) |
4 | 160 |
|
161 |
$(LOG_GENDIRECTORY)/POASystemException.resource : $(POA.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
162 |
$(MCJ_GENERATE_LOG_RB) $(POA.MC) $(LOG_GENDIRECTORY) |
4 | 163 |
|
164 |
$(LOG_GENDIRECTORY)/UtilSystemException.resource : $(UTIL.MC) |
|
2306
70ca22b481e1
6695776: corba jscheme jar files in repository could be built from source
tbell
parents:
4
diff
changeset
|
165 |
$(MCJ_GENERATE_LOG_RB) $(UTIL.MC) $(LOG_GENDIRECTORY) |
4 | 166 |
|
167 |
||
168 |
# |
|
169 |
# Activation |
|
170 |
# |
|
171 |
||
172 |
ACTIVATIONFILES = $(com_sun_corba_se_spi_activation_java:%=$(GENSRCDIR)/%) |
|
173 |
||
174 |
$(ACTIVATIONFILES): $(ACTIVATION.IDL) |
|
175 |
$(IDLJ) -td $(GENSRCDIR) -i $(ACTIVATIONFILEDIR) -fall -oldImplBase -pkgPrefix activation com.sun.corba.se.spi $(ACTIVATION.IDL) |
|
176 |
||
177 |
activation.idl.compile: $(ACTIVATIONFILES) |
|
178 |
||
179 |
activation.idl.clean: |
|
180 |
$(RM) -f $(ACTIVATIONFILES) |
|
181 |
||
182 |
||
183 |
# |
|
184 |
# PortableActivationIDL |
|
185 |
# |
|
186 |
||
187 |
PORTABLEACTIVATIONFILES = $(com_sun_corba_se_PortableActivationIDL_java:%=$(GENSRCDIR)/%) |
|
188 |
||
189 |
PORTABLEACTIVATION_INCLUDES = -i $(CORBA_IDL_DIR) -i $(PI_IDL_DIR) |
|
190 |
||
191 |
PORTABLEACTIVATION_PKG_PREFIXES = -pkgPrefix PortableInterceptor org.omg \ |
|
192 |
-pkgPrefix PortableActivationIDL com.sun.corba.se \ |
|
193 |
-pkgPrefix Dynamic org.omg \ |
|
194 |
-pkgPrefix IOP org.omg |
|
195 |
||
196 |
# REVISIT: remove -oldImplBase |
|
197 |
$(PORTABLEACTIVATIONFILES): $(PORTABLEACTIVATION.IDL) |
|
198 |
$(IDLJ) -td $(GENSRCDIR) $(PORTABLEACTIVATION_INCLUDES) $(PORTABLEACTIVATION_PKG_PREFIXES) -fall -oldImplBase -corba 3.0 -D CORBA3 $(PORTABLEACTIVATION.IDL) |
|
199 |
||
200 |
portableactivation.idl.compile: $(PORTABLEACTIVATIONFILES) |
|
201 |
||
202 |
portableactivation.idl.clean: |
|
203 |
$(RM) -f $(PORTABLEACTIVATIONFILES) |
|
204 |
||
205 |
# |
|
206 |
# Include |
|
207 |
# |
|
208 |
include $(BUILDDIR)/common/Rules.gmk |