make/org/omg/sources/Makefile

changeset 1
55540e827aef
child 158
91006f157c46
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/make/org/omg/sources/Makefile	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,213 @@
     1.4 +#
     1.5 +# Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 +#
     1.8 +# This code is free software; you can redistribute it and/or modify it
     1.9 +# under the terms of the GNU General Public License version 2 only, as
    1.10 +# published by the Free Software Foundation.  Sun designates this
    1.11 +# particular file as subject to the "Classpath" exception as provided
    1.12 +# by Sun in the LICENSE file that accompanied this code.
    1.13 +#
    1.14 +# This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 +# version 2 for more details (a copy is included in the LICENSE file that
    1.18 +# accompanied this code).
    1.19 +#
    1.20 +# You should have received a copy of the GNU General Public License version
    1.21 +# 2 along with this work; if not, write to the Free Software Foundation,
    1.22 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 +#
    1.24 +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.25 +# CA 95054 USA or visit www.sun.com if you need additional information or
    1.26 +# have any questions.
    1.27 +#
    1.28 +
    1.29 +BUILDDIR = ../../..
    1.30 +
    1.31 +PACKAGE = org.omg
    1.32 +PRODUCT = org
    1.33 +
    1.34 +include $(BUILDDIR)/common/Defs.gmk
    1.35 +
    1.36 +#
    1.37 +# Files
    1.38 +#
    1.39 +CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/
    1.40 +include $(CORBA_JMK_DIRECTORY)org_omg_PortableServer.jmk
    1.41 +include $(CORBA_JMK_DIRECTORY)org_omg_DynamicAny.jmk
    1.42 +include $(CORBA_JMK_DIRECTORY)org_omg_CosNaming.jmk
    1.43 +include $(CORBA_JMK_DIRECTORY)org_omg_IOP.jmk
    1.44 +include $(CORBA_JMK_DIRECTORY)org_omg_Messaging.jmk
    1.45 +include $(CORBA_JMK_DIRECTORY)org_omg_CORBAX.jmk
    1.46 +include $(CORBA_JMK_DIRECTORY)org_omg_PortableInterceptor.jmk
    1.47 +
    1.48 +ifdef STANDALONE_CORBA_WS
    1.49 +include $(CORBA_JMK_DIRECTORY)org_omg_CosTransactions.jmk
    1.50 +endif
    1.51 +
    1.52 +#
    1.53 +# Rules
    1.54 +#
    1.55 +
    1.56 +ifdef STANDALONE_CORBA_WS
    1.57 +build: poa.compile iop.compile corbax.compile messaging.compile pi.compile dynany.compile ns.compile tr.compile
    1.58 +clean clobber:: pi.clean iop.clean corbax.clean messaging.clean poa.clean dynany.clean ns.clean tr.clean
    1.59 +else
    1.60 +build: poa.compile iop.compile corbax.compile messaging.compile pi.compile ns.compile dynany.compile
    1.61 +clean clobber:: iop.clean corbax.clean messaging.clean pi.clean poa.clean ns.clean dynany.clean
    1.62 +endif
    1.63 +
    1.64 +
    1.65 +#
    1.66 +# These rules are for compiling/cleaning the POA generated stuff
    1.67 +#
    1.68 +
    1.69 +SRC_DIR = $(SHARE_SRC)/classes
    1.70 +CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer
    1.71 +
    1.72 +# IDL Files
    1.73 +
    1.74 +POA.IDL = $(SRC_DIR)/org/omg/PortableServer/poa.idl
    1.75 +DYNAMIC_ANY.IDL = $(SRC_DIR)/org/omg/DynamicAny/DynamicAny.idl
    1.76 +COSTRANSACTIONS.IDL = $(SRC_DIR)/org/omg/CosTransactions/CosTransactions.idl
    1.77 +COSTSINTEROP.IDL = $(SRC_DIR)/org/omg/CosTransactions/CosTSInteroperation.idl
    1.78 +NAMESERVICE.IDL = $(SRC_DIR)/org/omg/CosNaming/nameservice.idl
    1.79 +# The following 4 files are for Portable Interceptors
    1.80 +IOP.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/IOP.idl
    1.81 +CORBAX.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/CORBAX.idl
    1.82 +MESSAGING.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/Messaging.idl
    1.83 +INTERCEPTORS.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/Interceptors.idl
    1.84 +
    1.85 +# IDL Directories
    1.86 +
    1.87 +POAFILEDIR = $(GENSRCDIR)/org/omg/PortableServer
    1.88 +POASRCDIR = $(SRC_DIR)/org/omg/PortableServer
    1.89 +DYNANY_DIR = $(GENSRCDIR)/org/omg/DynamicAny
    1.90 +NAMESERVICEDIR = $(GENSRCDIR)/org/omg/CosNaming
    1.91 +INTERCEPTORSDIR = $(GENSRCDIR)/org/omg/PortableInterceptor
    1.92 +
    1.93 +# POA files and Rules
    1.94 +
    1.95 +POAGENERATEDFILES = $(POA_GENERATED_java:%=$(GENSRCDIR)/%)
    1.96 +POAHELHOLFILES =    $(POA_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
    1.97 +
    1.98 +$(POAGENERATEDFILES):: $(POA.IDL)
    1.99 +	$(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)
   1.100 +	$(RM) -r $(POAHELHOLFILES)
   1.101 +
   1.102 +poa.compile: $(POAGENERATEDFILES)
   1.103 +
   1.104 +poa.clean: 
   1.105 +	$(RM) -r $(POAFILEDIR)
   1.106 +
   1.107 +# DynAny Files and Rules
   1.108 +
   1.109 +DYNANY_IDLJ_FLAGS=-i "$(SRC_DIR)/org/omg/CORBA" -corba 3.0 -fall -pkgPrefix DynamicAny org.omg
   1.110 +
   1.111 +DYNANYFILES = $(DYNANY_GENERATED_java:%=$(GENSRCDIR)/%)
   1.112 +DYNANYDELETEFILES = $(DYNANY_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
   1.113 +
   1.114 +# Generating and deleting unused files to reduce images size
   1.115 +$(DYNANYFILES): $(DYNAMIC_ANY.IDL)
   1.116 +	$(IDLJ) -td "$(GENSRCDIR)" $(DYNANY_IDLJ_FLAGS) $(DYNAMIC_ANY.IDL)
   1.117 +	$(RM) $(DYNANY_DIR)/*POA*
   1.118 +	$(RM) $(DYNANY_DIR)/*Holder*
   1.119 +	$(RM) $(DYNANYDELETEFILES)
   1.120 +
   1.121 +dynany.compile: $(DYNANYFILES)
   1.122 +
   1.123 +dynany.clean:
   1.124 +	$(RM) -r $(DYNANY_DIR)
   1.125 +
   1.126 +# CosTransactions Files
   1.127 +TRGENERATEDFILES = $(TR_GENERATED_java:%=$(GENSRCDIR)/%)
   1.128 +TR_IDLJ_FLAGS =-i "$(SRC_DIR)/org/omg/PortableInterceptor" -i "$(SRC_DIR)/org/omg/PortableServer" -i "$(SRC_DIR)/org/omg/CosTransactions"
   1.129 +
   1.130 +$(TRGENERATEDFILES):: $(COSTRANSACTIONS.IDL) $(COSTSINTEROP.IDL)
   1.131 +	$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg -pkgPrefix CosTransactions org.omg $(COSTRANSACTIONS.IDL)
   1.132 +	$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg -pkgPrefix CosTSInteroperation org.omg $(COSTSINTEROP.IDL)
   1.133 +#	$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
   1.134 +#	$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fallTIE -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
   1.135 +#	$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
   1.136 +#	$(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fallTIE -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
   1.137 +
   1.138 +tr.compile: $(TRGENERATEDFILES)
   1.139 +
   1.140 +tr.clean:
   1.141 +	$(RM) -f $(TRGENERATEDFILES)
   1.142 +
   1.143 +#CosNaming Files
   1.144 +NSGENERATEDFILES = $(NS_GENERATED_java:%=$(GENSRCDIR)/%)
   1.145 +
   1.146 +# Compile NameService IDL file and then copy
   1.147 +# _NamingContextImplBase.java and _BindingIteratorImplBase.java files
   1.148 +# to GENSRC directory. Note that these two classes are deprecated.
   1.149 +$(NSGENERATEDFILES): $(NAMESERVICE.IDL)
   1.150 +	$(IDLJ) -td "$(GENSRCDIR)" -i $(NAMESERVICEDIR) -fall -pkgPrefix CosNaming org.omg $(NAMESERVICE.IDL)
   1.151 +
   1.152 +ns.compile: $(NSGENERATEDFILES)
   1.153 +
   1.154 +ns.clean:
   1.155 +	$(RM) -f $(NSGENERATEDFILES)
   1.156 +
   1.157 +#IOP compile 
   1.158 +IOPGENERATEDFILES = $(IOP_java:%=$(GENSRCDIR)/%)
   1.159 +IOPDELETEFILES =    $(IOP_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
   1.160 +
   1.161 +$(IOPGENERATEDFILES):: $(IOP.IDL)
   1.162 +	$(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)
   1.163 +	$(RM) -r $(IOPDELETEFILES)
   1.164 +
   1.165 +iop.compile: $(IOPGENERATEDFILES)
   1.166 +
   1.167 +iop.clean: 
   1.168 +	$(RM) $(IOPGENERATEDFILES)
   1.169 +
   1.170 +#CORBAX compile 
   1.171 +CORBAXGENERATEDFILES = $(CORBA_java:%=$(GENSRCDIR)/%)
   1.172 +CORBAXDUPLICATEFILES = $(CORBA_DUPLICATE_java:%=$(GENSRCDIR)/%)
   1.173 +
   1.174 +$(CORBAXGENERATEDFILES):: $(CORBAX.IDL)
   1.175 +	$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 $(CORBAX.IDL)
   1.176 +	$(RM) $(CORBAXDUPLICATEFILES)
   1.177 +
   1.178 +corbax.compile: $(CORBAXGENERATEDFILES)
   1.179 +
   1.180 +corbax.clean: 
   1.181 +	$(RM) $(CORBAXGENERATEDFILES)
   1.182 +
   1.183 +#Messaging compile 
   1.184 +MESSAGINGGENERATEDFILES = $(Messaging_java:%=$(GENSRCDIR)/%)
   1.185 +
   1.186 +$(MESSAGINGGENERATEDFILES):: $(MESSAGING.IDL)
   1.187 +	$(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 -pkgPrefix Messaging org.omg $(MESSAGING.IDL)
   1.188 +
   1.189 +messaging.compile: $(MESSAGINGGENERATEDFILES)
   1.190 +
   1.191 +messaging.clean: 
   1.192 +	$(RM) $(MESSAGINGGENERATEDFILES)
   1.193 +
   1.194 +
   1.195 +
   1.196 +#PortableInterceptor Files
   1.197 +PIGENERATEDFILES = $(PI_GENERATED_java:%=$(GENSRCDIR)/%)
   1.198 +PIHELHOLFILES = $(PI_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
   1.199 +
   1.200 +$(PIGENERATEDFILES):: $(INTERCEPTORS.IDL)
   1.201 +	$(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)
   1.202 +	$(RM) $(PIHELHOLFILES)
   1.203 +
   1.204 +pi.compile: $(PIGENERATEDFILES)
   1.205 +
   1.206 +pi.clean:
   1.207 +	$(RM) -f $(PIGENERATEDFILES)
   1.208 +
   1.209 +
   1.210 +ifdef STANDALONE_CORBA_WS
   1.211 +.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
   1.212 +else
   1.213 +.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
   1.214 +endif
   1.215 +
   1.216 +include $(BUILDDIR)/common/Rules.gmk

mercurial