4
|
1 |
#
|
|
2 |
# Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
|
|
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 = org.omg
|
|
29 |
PRODUCT = org
|
|
30 |
|
|
31 |
include $(BUILDDIR)/common/Defs.gmk
|
|
32 |
|
|
33 |
#
|
|
34 |
# Files
|
|
35 |
#
|
|
36 |
CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/
|
|
37 |
include $(CORBA_JMK_DIRECTORY)org_omg_PortableServer.jmk
|
|
38 |
include $(CORBA_JMK_DIRECTORY)org_omg_DynamicAny.jmk
|
|
39 |
include $(CORBA_JMK_DIRECTORY)org_omg_CosNaming.jmk
|
|
40 |
include $(CORBA_JMK_DIRECTORY)org_omg_IOP.jmk
|
|
41 |
include $(CORBA_JMK_DIRECTORY)org_omg_Messaging.jmk
|
|
42 |
include $(CORBA_JMK_DIRECTORY)org_omg_CORBAX.jmk
|
|
43 |
include $(CORBA_JMK_DIRECTORY)org_omg_PortableInterceptor.jmk
|
|
44 |
|
|
45 |
ifdef STANDALONE_CORBA_WS
|
|
46 |
include $(CORBA_JMK_DIRECTORY)org_omg_CosTransactions.jmk
|
|
47 |
endif
|
|
48 |
|
|
49 |
#
|
|
50 |
# Rules
|
|
51 |
#
|
|
52 |
|
|
53 |
ifdef STANDALONE_CORBA_WS
|
|
54 |
build: poa.compile iop.compile corbax.compile messaging.compile pi.compile dynany.compile ns.compile tr.compile
|
|
55 |
clean clobber:: pi.clean iop.clean corbax.clean messaging.clean poa.clean dynany.clean ns.clean tr.clean
|
|
56 |
else
|
|
57 |
build: poa.compile iop.compile corbax.compile messaging.compile pi.compile ns.compile dynany.compile
|
|
58 |
clean clobber:: iop.clean corbax.clean messaging.clean pi.clean poa.clean ns.clean dynany.clean
|
|
59 |
endif
|
|
60 |
|
|
61 |
|
|
62 |
#
|
|
63 |
# These rules are for compiling/cleaning the POA generated stuff
|
|
64 |
#
|
|
65 |
|
|
66 |
SRC_DIR = $(SHARE_SRC)/classes
|
|
67 |
CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer
|
|
68 |
|
|
69 |
# IDL Files
|
|
70 |
|
|
71 |
POA.IDL = $(SRC_DIR)/org/omg/PortableServer/poa.idl
|
|
72 |
DYNAMIC_ANY.IDL = $(SRC_DIR)/org/omg/DynamicAny/DynamicAny.idl
|
|
73 |
COSTRANSACTIONS.IDL = $(SRC_DIR)/org/omg/CosTransactions/CosTransactions.idl
|
|
74 |
COSTSINTEROP.IDL = $(SRC_DIR)/org/omg/CosTransactions/CosTSInteroperation.idl
|
|
75 |
NAMESERVICE.IDL = $(SRC_DIR)/org/omg/CosNaming/nameservice.idl
|
|
76 |
# The following 4 files are for Portable Interceptors
|
|
77 |
IOP.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/IOP.idl
|
|
78 |
CORBAX.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/CORBAX.idl
|
|
79 |
MESSAGING.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/Messaging.idl
|
|
80 |
INTERCEPTORS.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/Interceptors.idl
|
|
81 |
|
|
82 |
# IDL Directories
|
|
83 |
|
|
84 |
POAFILEDIR = $(GENSRCDIR)/org/omg/PortableServer
|
|
85 |
POASRCDIR = $(SRC_DIR)/org/omg/PortableServer
|
|
86 |
DYNANY_DIR = $(GENSRCDIR)/org/omg/DynamicAny
|
|
87 |
NAMESERVICEDIR = $(GENSRCDIR)/org/omg/CosNaming
|
|
88 |
INTERCEPTORSDIR = $(GENSRCDIR)/org/omg/PortableInterceptor
|
|
89 |
|
|
90 |
# POA files and Rules
|
|
91 |
|
|
92 |
POAGENERATEDFILES = $(POA_GENERATED_java:%=$(GENSRCDIR)/%)
|
|
93 |
POAHELHOLFILES = $(POA_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
|
|
94 |
|
|
95 |
$(POAGENERATEDFILES):: $(POA.IDL)
|
|
96 |
$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableServer" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -corba 3.0 -fall -pkgPrefix PortableServer org.omg $(POA.IDL)
|
|
97 |
$(RM) -r $(POAHELHOLFILES)
|
|
98 |
|
|
99 |
poa.compile: $(POAGENERATEDFILES)
|
|
100 |
|
|
101 |
poa.clean:
|
|
102 |
$(RM) -r $(POAFILEDIR)
|
|
103 |
|
|
104 |
# DynAny Files and Rules
|
|
105 |
|
|
106 |
DYNANY_IDLJ_FLAGS=-i "$(SRC_DIR)/org/omg/CORBA" -corba 3.0 -fall -pkgPrefix DynamicAny org.omg
|
|
107 |
|
|
108 |
DYNANYFILES = $(DYNANY_GENERATED_java:%=$(GENSRCDIR)/%)
|
|
109 |
DYNANYDELETEFILES = $(DYNANY_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
|
|
110 |
|
|
111 |
# Generating and deleting unused files to reduce images size
|
|
112 |
$(DYNANYFILES): $(DYNAMIC_ANY.IDL)
|
|
113 |
$(IDLJ) -td "$(GENSRCDIR)" $(DYNANY_IDLJ_FLAGS) $(DYNAMIC_ANY.IDL)
|
|
114 |
$(RM) $(DYNANY_DIR)/*POA*
|
|
115 |
$(RM) $(DYNANY_DIR)/*Holder*
|
|
116 |
$(RM) $(DYNANYDELETEFILES)
|
|
117 |
|
|
118 |
dynany.compile: $(DYNANYFILES)
|
|
119 |
|
|
120 |
dynany.clean:
|
|
121 |
$(RM) -r $(DYNANY_DIR)
|
|
122 |
|
|
123 |
# CosTransactions Files
|
|
124 |
TRGENERATEDFILES = $(TR_GENERATED_java:%=$(GENSRCDIR)/%)
|
|
125 |
TR_IDLJ_FLAGS =-i "$(SRC_DIR)/org/omg/PortableInterceptor" -i "$(SRC_DIR)/org/omg/PortableServer" -i "$(SRC_DIR)/org/omg/CosTransactions"
|
|
126 |
|
|
127 |
$(TRGENERATEDFILES):: $(COSTRANSACTIONS.IDL) $(COSTSINTEROP.IDL)
|
|
128 |
$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg -pkgPrefix CosTransactions org.omg $(COSTRANSACTIONS.IDL)
|
|
129 |
$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg -pkgPrefix CosTSInteroperation org.omg $(COSTSINTEROP.IDL)
|
|
130 |
# $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
|
|
131 |
# $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fallTIE -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
|
|
132 |
# $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
|
|
133 |
# $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fallTIE -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
|
|
134 |
|
|
135 |
tr.compile: $(TRGENERATEDFILES)
|
|
136 |
|
|
137 |
tr.clean:
|
|
138 |
$(RM) -f $(TRGENERATEDFILES)
|
|
139 |
|
|
140 |
#CosNaming Files
|
|
141 |
NSGENERATEDFILES = $(NS_GENERATED_java:%=$(GENSRCDIR)/%)
|
|
142 |
|
|
143 |
# Compile NameService IDL file and then copy
|
|
144 |
# _NamingContextImplBase.java and _BindingIteratorImplBase.java files
|
|
145 |
# to GENSRC directory. Note that these two classes are deprecated.
|
|
146 |
$(NSGENERATEDFILES): $(NAMESERVICE.IDL)
|
|
147 |
$(IDLJ) -td "$(GENSRCDIR)" -i $(NAMESERVICEDIR) -fall -pkgPrefix CosNaming org.omg $(NAMESERVICE.IDL)
|
|
148 |
|
|
149 |
ns.compile: $(NSGENERATEDFILES)
|
|
150 |
|
|
151 |
ns.clean:
|
|
152 |
$(RM) -f $(NSGENERATEDFILES)
|
|
153 |
|
|
154 |
#IOP compile
|
|
155 |
IOPGENERATEDFILES = $(IOP_java:%=$(GENSRCDIR)/%)
|
|
156 |
IOPDELETEFILES = $(IOP_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
|
|
157 |
|
|
158 |
$(IOPGENERATEDFILES):: $(IOP.IDL)
|
|
159 |
$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 -D CORBA3 -pkgPrefix IOP org.omg $(IOP.IDL)
|
|
160 |
$(RM) -r $(IOPDELETEFILES)
|
|
161 |
|
|
162 |
iop.compile: $(IOPGENERATEDFILES)
|
|
163 |
|
|
164 |
iop.clean:
|
|
165 |
$(RM) $(IOPGENERATEDFILES)
|
|
166 |
|
|
167 |
#CORBAX compile
|
|
168 |
CORBAXGENERATEDFILES = $(CORBA_java:%=$(GENSRCDIR)/%)
|
|
169 |
CORBAXDUPLICATEFILES = $(CORBA_DUPLICATE_java:%=$(GENSRCDIR)/%)
|
|
170 |
|
|
171 |
$(CORBAXGENERATEDFILES):: $(CORBAX.IDL)
|
|
172 |
$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 $(CORBAX.IDL)
|
|
173 |
$(RM) $(CORBAXDUPLICATEFILES)
|
|
174 |
|
|
175 |
corbax.compile: $(CORBAXGENERATEDFILES)
|
|
176 |
|
|
177 |
corbax.clean:
|
|
178 |
$(RM) $(CORBAXGENERATEDFILES)
|
|
179 |
|
|
180 |
#Messaging compile
|
|
181 |
MESSAGINGGENERATEDFILES = $(Messaging_java:%=$(GENSRCDIR)/%)
|
|
182 |
|
|
183 |
$(MESSAGINGGENERATEDFILES):: $(MESSAGING.IDL)
|
|
184 |
$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 -pkgPrefix Messaging org.omg $(MESSAGING.IDL)
|
|
185 |
|
|
186 |
messaging.compile: $(MESSAGINGGENERATEDFILES)
|
|
187 |
|
|
188 |
messaging.clean:
|
|
189 |
$(RM) $(MESSAGINGGENERATEDFILES)
|
|
190 |
|
|
191 |
|
|
192 |
|
|
193 |
#PortableInterceptor Files
|
|
194 |
PIGENERATEDFILES = $(PI_GENERATED_java:%=$(GENSRCDIR)/%)
|
|
195 |
PIHELHOLFILES = $(PI_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
|
|
196 |
|
|
197 |
$(PIGENERATEDFILES):: $(INTERCEPTORS.IDL)
|
|
198 |
$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -pkgPrefix PortableInterceptor org.omg -pkgPrefix Dynamic org.omg -pkgPrefix IOP org.omg -corba 3.0 -D CORBA3 $(INTERCEPTORS.IDL)
|
|
199 |
$(RM) $(PIHELHOLFILES)
|
|
200 |
|
|
201 |
pi.compile: $(PIGENERATEDFILES)
|
|
202 |
|
|
203 |
pi.clean:
|
|
204 |
$(RM) -f $(PIGENERATEDFILES)
|
|
205 |
|
|
206 |
|
|
207 |
ifdef STANDALONE_CORBA_WS
|
|
208 |
.PHONY : poa.compile poa.clean iop.compile iop.clean messaging.compile messaging.clean corbax.compile corbax.clean pi.compile pi.clean dynany.clean dynany.compile ns.compile ns.clean tr.compile tr.clean
|
|
209 |
else
|
|
210 |
.PHONY : poa.compile poa.clean iop.compile iop.clean messaging.compile messaging.clean corbax.compile corbax.clean pi.compile pi.clean ns.compile ns.clean dynany.clean dynany.compile
|
|
211 |
endif
|
|
212 |
|
|
213 |
include $(BUILDDIR)/common/Rules.gmk
|