author | mgronlun |
Fri, 01 Nov 2013 15:56:06 +0100 | |
changeset 21520 | 9f3ba7e1ed5c |
parent 20921 | 9b534ffa9d4e |
permissions | -rw-r--r-- |
14242 | 1 |
# |
20919
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
2 |
# Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. |
14242 | 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. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle 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 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. |
|
24 |
# |
|
25 |
||
26 |
# |
|
27 |
# Makefile for building the corba workspace. |
|
28 |
# |
|
29 |
||
30 |
# This must be the first rule |
|
31 |
default: all |
|
32 |
||
33 |
include $(SPEC) |
|
34 |
include MakeBase.gmk |
|
35 |
include JavaCompilation.gmk |
|
36 |
include IdlCompilation.gmk |
|
37 |
||
38 |
# The Corba sources are old and generates a LOT of warnings. |
|
20554 | 39 |
# Disable these using Xlint, until someone cares to fix them. |
40 |
DISABLE_CORBA_WARNINGS := -Xlint:all,-deprecation,-unchecked,-serial,-fallthrough,-cast,-rawtypes,-static,-dep-ann |
|
14242 | 41 |
|
42 |
# The "generate old bytecode" javac setup uses the new compiler to compile for the |
|
43 |
# boot jdk to generate tools that need to be run with the boot jdk. |
|
44 |
# Thus we force the target bytecode to the boot jdk bytecode. |
|
20554 | 45 |
$(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE, \ |
46 |
JVM := $(JAVA), \ |
|
47 |
JAVAC := $(NEW_JAVAC), \ |
|
20921 | 48 |
FLAGS := $(BOOT_JDK_SOURCETARGET) \ |
49 |
-bootclasspath "$(BOOT_RTJAR)$(PATH_SEP)$(BOOT_TOOLSJAR)" \ |
|
50 |
$(DISABLE_CORBA_WARNINGS), \ |
|
20554 | 51 |
SERVER_DIR := $(SJAVAC_SERVER_DIR), \ |
52 |
SERVER_JVM := $(SJAVAC_SERVER_JAVA))) |
|
14242 | 53 |
|
54 |
# The "generate new bytecode" uses the new compiler to generate bytecode |
|
55 |
# for the new jdk that is being built. The code compiled by this setup |
|
56 |
# cannot necessarily be run with the boot jdk. |
|
20554 | 57 |
$(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE, \ |
58 |
JVM := $(JAVA), \ |
|
59 |
JAVAC := $(NEW_JAVAC), \ |
|
60 |
FLAGS := -cp $(BOOT_TOOLSJAR) -XDignore.symbol.file=true $(DISABLE_CORBA_WARNINGS), \ |
|
61 |
SERVER_DIR := $(SJAVAC_SERVER_DIR), \ |
|
62 |
SERVER_JVM := $(SJAVAC_SERVER_JAVA))) |
|
14242 | 63 |
|
20554 | 64 |
$(eval $(call SetupJavaCompilation,BUILD_STRIPPROP, \ |
65 |
SETUP := GENERATE_OLDBYTECODE, \ |
|
66 |
SRC := $(CORBA_TOPDIR)/make/tools/src, \ |
|
67 |
BIN := $(CORBA_OUTPUTDIR)/btclasses/stripprop_classes)) |
|
14242 | 68 |
|
20554 | 69 |
$(eval $(call SetupArchive,ARCHIVE_STRIPPROP, $(BUILD_STRIPPROP), \ |
70 |
SRCS := $(CORBA_OUTPUTDIR)/btclasses/stripprop_classes, \ |
|
71 |
JAR := $(CORBA_OUTPUTDIR)/btjars/stripproperties.jar, \ |
|
72 |
JARMAIN := build.tools.stripproperties.StripPropertiesCorba)) |
|
14242 | 73 |
|
20554 | 74 |
$(eval $(call SetupJavaCompilation,BUILD_IDLJ, \ |
75 |
SETUP := GENERATE_OLDBYTECODE, \ |
|
76 |
SRC := $(CORBA_TOPDIR)/src/share/classes, \ |
|
77 |
BIN := $(CORBA_OUTPUTDIR)/btclasses/idlj_classes, \ |
|
78 |
COPY := .prp, \ |
|
79 |
INCLUDES := com/sun/tools/corba/se/idl, \ |
|
80 |
EXCLUDE_FILES := ResourceBundleUtil.java)) |
|
14242 | 81 |
|
20554 | 82 |
$(eval $(call SetupArchive,ARCHIVE_IDLJ, $(BUILD_IDLJ), \ |
83 |
SRCS := $(CORBA_OUTPUTDIR)/btclasses/idlj_classes, \ |
|
84 |
SUFFIXES := .class .prp, \ |
|
85 |
JAR := $(CORBA_OUTPUTDIR)/btjars/idlj.jar, \ |
|
86 |
JARMAIN := com.sun.tools.corba.se.idl.toJavaPortable.Compile)) |
|
14242 | 87 |
|
20554 | 88 |
$(eval $(call SetupJavaCompilation,BUILD_LOGUTIL, \ |
89 |
SETUP := GENERATE_OLDBYTECODE, \ |
|
90 |
SRC := $(CORBA_TOPDIR)/src/share/classes, \ |
|
91 |
BIN := $(CORBA_OUTPUTDIR)/btclasses/logutil_classes, \ |
|
92 |
INCLUDES := com/sun/tools/corba/se/logutil)) |
|
14242 | 93 |
|
20554 | 94 |
$(eval $(call SetupArchive,ARCHIVE_LOGUTIL, $(BUILD_LOGUTIL), \ |
95 |
SRCS := $(CORBA_OUTPUTDIR)/btclasses/logutil_classes, \ |
|
96 |
JAR := $(CORBA_OUTPUTDIR)/btjars/logutil.jar, \ |
|
97 |
JARMAIN := com.sun.tools.corba.se.logutil.MC)) |
|
14242 | 98 |
|
20554 | 99 |
# Generate LogWrapper classes |
100 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/%SystemException.java: \ |
|
101 |
$(CORBA_TOPDIR)/src/share/classes/com/sun/corba/se/spi/logging/data/%.mc \ |
|
102 |
$(CORBA_OUTPUTDIR)/btjars/logutil.jar |
|
14242 | 103 |
$(MKDIR) -p $(@D) |
104 |
$(RM) -f $(@D)/_the_wrappers.d |
|
20554 | 105 |
$(ECHO) $(LOG_INFO) Generating class file from $*.mc |
14242 | 106 |
$(JAVA) -jar $(CORBA_OUTPUTDIR)/btjars/logutil.jar make-class $< $(@D) |
107 |
||
20554 | 108 |
# Generate LogWrapper properties file by concatening resource files |
14242 | 109 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/LogStrings.properties: \ |
20554 | 110 |
$(CORBA_OUTPUTDIR)/logwrappers/ActivationSystemException.resource \ |
111 |
$(CORBA_OUTPUTDIR)/logwrappers/IORSystemException.resource \ |
|
112 |
$(CORBA_OUTPUTDIR)/logwrappers/InterceptorsSystemException.resource \ |
|
113 |
$(CORBA_OUTPUTDIR)/logwrappers/NamingSystemException.resource \ |
|
114 |
$(CORBA_OUTPUTDIR)/logwrappers/OMGSystemException.resource \ |
|
115 |
$(CORBA_OUTPUTDIR)/logwrappers/ORBUtilSystemException.resource \ |
|
116 |
$(CORBA_OUTPUTDIR)/logwrappers/POASystemException.resource \ |
|
117 |
$(CORBA_OUTPUTDIR)/logwrappers/UtilSystemException.resource |
|
14242 | 118 |
$(MKDIR) -p $(@D) |
119 |
$(ECHO) $(LOG_INFO) Concatenating 8 resource files into $(@F) |
|
120 |
$(CAT) $^ > $@ |
|
121 |
||
122 |
# The resources files are generated from lisp-like .mc files. |
|
20554 | 123 |
$(CORBA_OUTPUTDIR)/logwrappers/%SystemException.resource: $(CORBA_TOPDIR)/src/share/classes/com/sun/corba/se/spi/logging/data/%.mc $(CORBA_OUTPUTDIR)/btjars/logutil.jar |
14242 | 124 |
$(MKDIR) -p $(@D) |
125 |
$(RM) -f $(@D)/_the_wrappers.d |
|
20554 | 126 |
$(ECHO) $(LOG_INFO) Generating resource file from $*.mc |
14242 | 127 |
$(JAVA) -jar $(CORBA_OUTPUTDIR)/btjars/logutil.jar make-resource $< $(@D) |
128 |
||
129 |
||
20554 | 130 |
$(CORBA_OUTPUTDIR)/logwrappers/_the_wrappers.d: $(CORBA_OUTPUTDIR)/btjars/logutil.jar \ |
131 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/ActivationSystemException.java \ |
|
132 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/IORSystemException.java \ |
|
133 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/InterceptorsSystemException.java \ |
|
134 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/NamingSystemException.java \ |
|
135 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/OMGSystemException.java \ |
|
136 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/ORBUtilSystemException.java \ |
|
137 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/POASystemException.java \ |
|
138 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/UtilSystemException.java \ |
|
139 |
$(CORBA_OUTPUTDIR)/logwrappers/com/sun/corba/se/impl/logging/LogStrings.properties |
|
140 |
$(MKDIR) -p $(@D) |
|
141 |
$(ECHO) LOGWRAPPERS_ARE_CREATED = yes > $@ |
|
14242 | 142 |
|
143 |
# Trigger the generation of the logwrappers. After the logwrapper classes and |
|
144 |
# resources have been created, then the makefile will restart and the newly |
|
145 |
# created java files will become part of the build further along in the makefile. |
|
146 |
-include $(CORBA_OUTPUTDIR)/logwrappers/_the_wrappers.d |
|
147 |
||
20554 | 148 |
ifeq ($(LOGWRAPPERS_ARE_CREATED), yes) |
14242 | 149 |
|
20554 | 150 |
$(eval $(call SetupIdlCompilation,BUILD_IDLS, \ |
151 |
IDLJ := $(JAVA) -jar $(CORBA_OUTPUTDIR)/btjars/idlj.jar, \ |
|
152 |
SRC := $(CORBA_TOPDIR)/src/share/classes, \ |
|
153 |
BIN := $(CORBA_OUTPUTDIR)/gensrc, \ |
|
154 |
EXCLUDES := com/sun/tools/corba/se/idl/% \ |
|
155 |
org/omg/CORBA/% \ |
|
156 |
com/sun/corba/se/GiopIDL/% \ |
|
157 |
org/omg/PortableServer/corba.idl, \ |
|
158 |
INCLUDES := %, \ |
|
159 |
OLDIMPLBASES := com/sun/corba/se/PortableActivationIDL/activation.idl \ |
|
160 |
com/sun/corba/se/spi/activation/activation.idl, \ |
|
161 |
DELETES := DYNANYDELETEFILES org/omg/DynamicAny/*POA* org/omg/DynamicAny/*Holder* org/omg/DynamicAny/DynValueBoxHelper.java org/omg/DynamicAny/DynValueCommonHelper.java org/omg/DynamicAny/_DynValueCommonStub.java org/omg/DynamicAny/_DynValueBoxStub.java org/omg/DynamicAny/DynAnyPackage/TypeMismatchHolder.java org/omg/DynamicAny/DynAnyPackage/InvalidValueHolder.java org/omg/DynamicAny/DynAnyFactoryPackage/InconsistentTypeCodeHolder.java IOPDELETEFILES org/omg/IOP/BI_DIR_IIOP.java org/omg/IOP/ChainBypassCheck.java org/omg/IOP/ChainBypassInfo.java org/omg/IOP/FORWARDED_IDENTITY.java org/omg/IOP/INVOCATION_POLICIES.java org/omg/IOP/LogicalThreadId.java org/omg/IOP/SendingContextRunTime.java org/omg/IOP/UnknownExceptionInfo.java org/omg/IOP/TaggedComponentSeqHolder.java POAHELHOLFILES org/omg/PortableServer/CurrentPackage/NoContextHolder.java org/omg/PortableServer/ForwardRequestHolder.java org/omg/PortableServer/IdAssignmentPolicyValueHelper.java org/omg/PortableServer/IdAssignmentPolicyValueHolder.java org/omg/PortableServer/IdUniquenessPolicyValueHelper.java org/omg/PortableServer/IdUniquenessPolicyValueHolder.java org/omg/PortableServer/ImplicitActivationPolicyValueHelper.java org/omg/PortableServer/ImplicitActivationPolicyValueHolder.java org/omg/PortableServer/LifespanPolicyValueHelper.java org/omg/PortableServer/LifespanPolicyValueHolder.java org/omg/PortableServer/ServantRetentionPolicyValueHelper.java org/omg/PortableServer/ServantRetentionPolicyValueHolder.java org/omg/PortableServer/ObjectIdHelper.java org/omg/PortableServer/ObjectIdHolder.java org/omg/PortableServer/POAListHelper.java org/omg/PortableServer/POAListHolder.java org/omg/PortableServer/POAManagerPackage/AdapterInactiveHolder.java org/omg/PortableServer/POAManagerPackage/StateHelper.java org/omg/PortableServer/POAManagerPackage/StateHolder.java org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHolder.java org/omg/PortableServer/POAPackage/AdapterNonExistentHolder.java org/omg/PortableServer/POAPackage/InvalidPolicyHolder.java org/omg/PortableServer/POAPackage/NoServantHolder.java org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHolder.java org/omg/PortableServer/POAPackage/ObjectNotActiveHolder.java org/omg/PortableServer/POAPackage/ServantAlreadyActiveHolder.java org/omg/PortableServer/POAPackage/ServantNotActiveHolder.java org/omg/PortableServer/POAPackage/WrongAdapterHolder.java org/omg/PortableServer/POAPackage/WrongPolicyHolder.java org/omg/PortableServer/RequestProcessingPolicyValueHelper.java org/omg/PortableServer/RequestProcessingPolicyValueHolder.java org/omg/PortableServer/ServantActivatorHolder.java org/omg/PortableServer/ServantLocatorHolder.java org/omg/PortableServer/ThreadPolicyValueHelper.java org/omg/PortableServer/ThreadPolicyValueHolder.java PIHELHOLFILES org/omg/PortableInterceptor/ClientRequestInfoHelper.java org/omg/PortableInterceptor/ClientRequestInterceptorHelper.java org/omg/PortableInterceptor/IORInfoHelper.java org/omg/PortableInterceptor/IORInterceptorHelper.java org/omg/PortableInterceptor/InterceptorHelper.java org/omg/PortableInterceptor/ORBInitInfoHelper.java org/omg/PortableInterceptor/ORBInitializerHelper.java org/omg/PortableInterceptor/PolicyFactoryHelper.java org/omg/PortableInterceptor/ReplyStatusHelper.java org/omg/PortableInterceptor/RequestInfoHelper.java org/omg/PortableInterceptor/ServerRequestInfoHelper.java org/omg/PortableInterceptor/ServerRequestInterceptorHelper.java org/omg/PortableInterceptor/SlotIdHelper.java org/omg/PortableInterceptor/ClientRequestInfoHolder.java org/omg/PortableInterceptor/ClientRequestInterceptorHolder.java org/omg/PortableInterceptor/CurrentHolder.java org/omg/PortableInterceptor/ForwardRequestHolder.java org/omg/PortableInterceptor/IORInfoHolder.java org/omg/PortableInterceptor/IORInterceptorHolder.java org/omg/PortableInterceptor/InterceptorHolder.java org/omg/PortableInterceptor/InvalidSlotHolder.java org/omg/PortableInterceptor/ORBInitInfoHolder.java org/omg/PortableInterceptor/ORBInitializerHolder.java org/omg/PortableInterceptor/PolicyFactoryHolder.java org/omg/PortableInterceptor/RequestInfoHolder.java org/omg/PortableInterceptor/ServerRequestInfoHolder.java org/omg/PortableInterceptor/ServerRequestInterceptorHolder.java org/omg/PortableInterceptor/TaggedComponentSeqHolder.java org/omg/PortableInterceptor/ORBInitInfoPackage/DuplicateNameHolder.java org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidNameHolder.java org/omg/IOP/CodecPackage/FormatMismatchHolder.java org/omg/IOP/CodecPackage/InvalidTypeForEncodingHolder.java org/omg/IOP/CodecPackage/TypeMismatchHolder.java org/omg/IOP/CodecHelper.java org/omg/IOP/EncodingFormatHelper.java org/omg/IOP/EncodingHelper.java org/omg/IOP/CodecFactoryPackage/UnknownEncodingHolder.java org/omg/IOP/CodecFactoryHolder.java org/omg/IOP/CodecHolder.java org/omg/IOP/EncodingHolder.java org/omg/IOP/TaggedComponentSeqHelper.java org/omg/Dynamic/ContextListHelper.java org/omg/Dynamic/ExceptionListHelper.java org/omg/Dynamic/ParameterHolder.java org/omg/Dynamic/ParameterListHolder.java org/omg/Dynamic/ExceptionListHolder.java org/omg/Dynamic/ParameterHelper.java org/omg/Dynamic/ParameterListHelper.java org/omg/Dynamic/RequestContextHelper.java CORBAX org/omg/CORBA/OctetSeqHelper.java org/omg/CORBA/OctetSeqHolder.java org/omg/CORBA/PolicyError.java org/omg/CORBA/RepositoryIdHelper.java)) |
|
14242 | 162 |
|
20554 | 163 |
$(BUILD_IDLS): $(CORBA_OUTPUTDIR)/btjars/idlj.jar |
14242 | 164 |
|
20554 | 165 |
$(CORBA_OUTPUTDIR)/gensrc/_the_idls.d: $(BUILD_IDLS) $(CORBA_OUTPUTDIR)/btjars/idlj.jar |
166 |
$(MKDIR) -p $(@D) |
|
167 |
$(ECHO) IDLS_ARE_CREATED = yes > $@ |
|
168 |
||
169 |
-include $(CORBA_OUTPUTDIR)/gensrc/_the_idls.d |
|
14242 | 170 |
|
20554 | 171 |
ifeq ($(IDLS_ARE_CREATED), yes) |
14242 | 172 |
|
20554 | 173 |
$(eval $(call SetupJavaCompilation,BUILD_CORBA, \ |
174 |
SETUP := GENERATE_NEWBYTECODE, \ |
|
175 |
SRC := $(CORBA_TOPDIR)/src/share/classes $(CORBA_OUTPUTDIR)/gensrc $(CORBA_OUTPUTDIR)/logwrappers, \ |
|
176 |
EXCLUDES := com/sun/corba/se/PortableActivationIDL \ |
|
177 |
com/sun/tools/corba/se/logutil, \ |
|
178 |
EXCLUDE_FILES := com/sun/corba/se/impl/presentation/rmi/JNDIStateFactoryImpl.java \ |
|
179 |
com/sun/corba/se/spi/presentation/rmi/StubWrapper.java \ |
|
180 |
com/sun/org/omg/CORBA/IDLTypeOperations.java \ |
|
181 |
com/sun/org/omg/CORBA/IRObjectOperations.java \ |
|
182 |
org/omg/PortableInterceptor/UNKNOWN.java \ |
|
183 |
com/sun/tools/corba/se/idl/ResourceBundleUtil.java \ |
|
184 |
com/sun/corba/se/impl/presentation/rmi/jndi.properties, \ |
|
185 |
COPY := .prp LogStrings.properties, \ |
|
186 |
BIN := $(CORBA_OUTPUTDIR)/classes)) |
|
14242 | 187 |
|
20919
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
188 |
$(eval $(call SetupJavaCompilation,BUILD_BOOTSTRAP_CORBA, \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
189 |
SETUP := GENERATE_OLDBYTECODE, \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
190 |
SRC := $(BUILD_CORBA_SRC), \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
191 |
EXCLUDES := $(BUILD_CORBA_EXCLUDES), \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
192 |
EXCLUDE_FILES := $(BUILD_CORBA_EXCLUDE_FILES), \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
193 |
COPY := $(BUILD_CORBA_COPY), \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
194 |
BIN := $(CORBA_OUTPUTDIR)/btclasses/corba_classes, \ |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
195 |
JAR := $(CORBA_OUTPUTDIR)/btjars/btcorba.jar)) |
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
196 |
|
20554 | 197 |
# Separate src.zip call to include sources that were excluded in the build to |
198 |
# mimic behavior in old build system. |
|
199 |
$(eval $(call SetupZipArchive,ARCHIVE_BUILD_CORBA, \ |
|
200 |
SRC := $(CORBA_TOPDIR)/src/share/classes $(CORBA_OUTPUTDIR)/gensrc $(CORBA_OUTPUTDIR)/logwrappers, \ |
|
201 |
ZIP := $(CORBA_OUTPUTDIR)/dist/lib/src.zip)) |
|
202 |
||
203 |
$(BUILD_CORBA): $(BUILD_IDLS) $(LOGWRAPPER_DEPENDENCIES) |
|
14242 | 204 |
|
20554 | 205 |
# Run stripproperties on all sunorb resource files. |
206 |
STRIP_PROP_SRC_FILES := $(shell $(FIND) $(CORBA_TOPDIR)/src/share/classes -name "sunorb*.properties") |
|
207 |
STRIP_PROP_FILES := $(patsubst $(CORBA_TOPDIR)/src/share/classes/%, $(CORBA_OUTPUTDIR)/classes/%, \ |
|
208 |
$(STRIP_PROP_SRC_FILES)) |
|
209 |
# Simple delivery of zh_HK properties files just copies zh_TW properties files |
|
210 |
STRIP_PROP_FILES += $(patsubst $(CORBA_TOPDIR)/src/share/classes/%_zh_TW.properties, \ |
|
211 |
$(CORBA_OUTPUTDIR)/classes/%_zh_HK.properties, \ |
|
212 |
$(shell $(FIND) $(CORBA_TOPDIR)/src/share/classes -name "sunorb_zh_TW.properties")) |
|
213 |
STRIP_PROP_SRC_FILES += $(shell $(FIND) $(CORBA_TOPDIR)/src/share/classes -name "sunorb_zh_TW.properties") |
|
214 |
STRIP_PROP_CMDLINE := $(subst _SPACE_, $(SPACE), \ |
|
215 |
$(join $(addprefix -clean_SPACE_, $(STRIP_PROP_SRC_FILES)), \ |
|
216 |
$(addprefix _SPACE_, $(STRIP_PROP_FILES)))) |
|
14242 | 217 |
|
20554 | 218 |
$(CORBA_OUTPUTDIR)/_the.stripped_properties: $(STRIP_PROP_SRC_FILES) \ |
219 |
$(CORBA_OUTPUTDIR)/btjars/stripproperties.jar |
|
220 |
$(MKDIR) -p $(sort $(dir $(STRIP_PROP_FILES))) |
|
221 |
$(call ListPathsSafely,STRIP_PROP_CMDLINE,\n, >> $(CORBA_OUTPUTDIR)/_the.strip_prop.cmdline) |
|
222 |
$(JAVA) -jar $(CORBA_OUTPUTDIR)/btjars/stripproperties.jar \ |
|
223 |
@$(CORBA_OUTPUTDIR)/_the.strip_prop.cmdline |
|
224 |
$(TOUCH) $@ |
|
14242 | 225 |
|
20554 | 226 |
$(eval $(call SetupArchive,ARCHIVE_CORBA, \ |
227 |
$(BUILD_CORBA) $(CORBA_OUTPUTDIR)/_the.stripped_properties, \ |
|
228 |
SRCS := $(CORBA_OUTPUTDIR)/classes, \ |
|
229 |
SUFFIXES := .class .prp .properties, \ |
|
230 |
JAR := $(CORBA_OUTPUTDIR)/dist/lib/classes.jar)) |
|
14242 | 231 |
|
20554 | 232 |
# The created classes.jar now contains Corba compiled to run on the target JDK |
233 |
# and is ready for inclusion in jdk rt.jar. |
|
14242 | 234 |
|
20554 | 235 |
# The created src.zip now contains .java and .properties files used to create the classes in classes.jar |
236 |
# and is ready for inclusion into the jdk src.zip |
|
14242 | 237 |
|
20554 | 238 |
BIN_FILES := $(CORBA_TOPDIR)/src/share/classes/com/sun/tools/corba/se/idl/orb.idl \ |
239 |
$(CORBA_TOPDIR)/src/share/classes/com/sun/tools/corba/se/idl/ir.idl |
|
14242 | 240 |
|
20554 | 241 |
$(CORBA_OUTPUTDIR)/dist/lib/bin.zip: $(BIN_FILES) $(CORBA_OUTPUTDIR)/dist/lib/classes.jar |
242 |
$(MKDIR) -p $(CORBA_OUTPUTDIR)/dist/lib |
|
243 |
$(MKDIR) -p $(CORBA_OUTPUTDIR)/lib |
|
244 |
$(RM) -f $@ |
|
245 |
$(ECHO) Creating `basename $@` |
|
246 |
$(CP) $(BIN_FILES) $(CORBA_OUTPUTDIR)/lib |
|
247 |
$(CHMOD) ug+w $(CORBA_OUTPUTDIR)/lib/* |
|
248 |
(cd $(CORBA_OUTPUTDIR); $(ZIP) -q $@ lib/orb.idl lib/ir.idl) |
|
14242 | 249 |
|
20554 | 250 |
# The created bin.zip now contains the corba specific binaries: orb.idl, ir.idl |
14242 | 251 |
|
20554 | 252 |
all: $(CORBA_OUTPUTDIR)/btjars/stripproperties.jar \ |
253 |
$(CORBA_OUTPUTDIR)/btjars/idlj.jar \ |
|
254 |
$(CORBA_OUTPUTDIR)/btjars/logutil.jar \ |
|
20919
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
255 |
$(CORBA_OUTPUTDIR)/btjars/btcorba.jar \ |
20554 | 256 |
$(CORBA_OUTPUTDIR)/dist/lib/classes.jar \ |
257 |
$(CORBA_OUTPUTDIR)/dist/lib/src.zip \ |
|
258 |
$(CORBA_OUTPUTDIR)/dist/lib/bin.zip |
|
259 |
endif |
|
14242 | 260 |
endif |
261 |
||
262 |
clean: |
|
263 |
$(RM) -rf $(CORBA_OUTPUTDIR) |
|
264 |
||
20554 | 265 |
.PHONY: default all clean clobber |