make/org/omg/sources/Makefile

Sun, 21 Jun 2009 23:50:28 -0700

author
tbell
date
Sun, 21 Jun 2009 23:50:28 -0700
changeset 85
65b66117dbd7
parent 1
55540e827aef
child 158
91006f157c46
permissions
-rw-r--r--

Merge

duke@1 1 #
duke@1 2 # Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
duke@1 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 #
duke@1 5 # This code is free software; you can redistribute it and/or modify it
duke@1 6 # under the terms of the GNU General Public License version 2 only, as
duke@1 7 # published by the Free Software Foundation. Sun designates this
duke@1 8 # particular file as subject to the "Classpath" exception as provided
duke@1 9 # by Sun in the LICENSE file that accompanied this code.
duke@1 10 #
duke@1 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@1 15 # accompanied this code).
duke@1 16 #
duke@1 17 # You should have received a copy of the GNU General Public License version
duke@1 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@1 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 20 #
duke@1 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@1 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@1 23 # have any questions.
duke@1 24 #
duke@1 25
duke@1 26 BUILDDIR = ../../..
duke@1 27
duke@1 28 PACKAGE = org.omg
duke@1 29 PRODUCT = org
duke@1 30
duke@1 31 include $(BUILDDIR)/common/Defs.gmk
duke@1 32
duke@1 33 #
duke@1 34 # Files
duke@1 35 #
duke@1 36 CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/
duke@1 37 include $(CORBA_JMK_DIRECTORY)org_omg_PortableServer.jmk
duke@1 38 include $(CORBA_JMK_DIRECTORY)org_omg_DynamicAny.jmk
duke@1 39 include $(CORBA_JMK_DIRECTORY)org_omg_CosNaming.jmk
duke@1 40 include $(CORBA_JMK_DIRECTORY)org_omg_IOP.jmk
duke@1 41 include $(CORBA_JMK_DIRECTORY)org_omg_Messaging.jmk
duke@1 42 include $(CORBA_JMK_DIRECTORY)org_omg_CORBAX.jmk
duke@1 43 include $(CORBA_JMK_DIRECTORY)org_omg_PortableInterceptor.jmk
duke@1 44
duke@1 45 ifdef STANDALONE_CORBA_WS
duke@1 46 include $(CORBA_JMK_DIRECTORY)org_omg_CosTransactions.jmk
duke@1 47 endif
duke@1 48
duke@1 49 #
duke@1 50 # Rules
duke@1 51 #
duke@1 52
duke@1 53 ifdef STANDALONE_CORBA_WS
duke@1 54 build: poa.compile iop.compile corbax.compile messaging.compile pi.compile dynany.compile ns.compile tr.compile
duke@1 55 clean clobber:: pi.clean iop.clean corbax.clean messaging.clean poa.clean dynany.clean ns.clean tr.clean
duke@1 56 else
duke@1 57 build: poa.compile iop.compile corbax.compile messaging.compile pi.compile ns.compile dynany.compile
duke@1 58 clean clobber:: iop.clean corbax.clean messaging.clean pi.clean poa.clean ns.clean dynany.clean
duke@1 59 endif
duke@1 60
duke@1 61
duke@1 62 #
duke@1 63 # These rules are for compiling/cleaning the POA generated stuff
duke@1 64 #
duke@1 65
duke@1 66 SRC_DIR = $(SHARE_SRC)/classes
duke@1 67 CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer
duke@1 68
duke@1 69 # IDL Files
duke@1 70
duke@1 71 POA.IDL = $(SRC_DIR)/org/omg/PortableServer/poa.idl
duke@1 72 DYNAMIC_ANY.IDL = $(SRC_DIR)/org/omg/DynamicAny/DynamicAny.idl
duke@1 73 COSTRANSACTIONS.IDL = $(SRC_DIR)/org/omg/CosTransactions/CosTransactions.idl
duke@1 74 COSTSINTEROP.IDL = $(SRC_DIR)/org/omg/CosTransactions/CosTSInteroperation.idl
duke@1 75 NAMESERVICE.IDL = $(SRC_DIR)/org/omg/CosNaming/nameservice.idl
duke@1 76 # The following 4 files are for Portable Interceptors
duke@1 77 IOP.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/IOP.idl
duke@1 78 CORBAX.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/CORBAX.idl
duke@1 79 MESSAGING.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/Messaging.idl
duke@1 80 INTERCEPTORS.IDL = $(SRC_DIR)/org/omg/PortableInterceptor/Interceptors.idl
duke@1 81
duke@1 82 # IDL Directories
duke@1 83
duke@1 84 POAFILEDIR = $(GENSRCDIR)/org/omg/PortableServer
duke@1 85 POASRCDIR = $(SRC_DIR)/org/omg/PortableServer
duke@1 86 DYNANY_DIR = $(GENSRCDIR)/org/omg/DynamicAny
duke@1 87 NAMESERVICEDIR = $(GENSRCDIR)/org/omg/CosNaming
duke@1 88 INTERCEPTORSDIR = $(GENSRCDIR)/org/omg/PortableInterceptor
duke@1 89
duke@1 90 # POA files and Rules
duke@1 91
duke@1 92 POAGENERATEDFILES = $(POA_GENERATED_java:%=$(GENSRCDIR)/%)
duke@1 93 POAHELHOLFILES = $(POA_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
duke@1 94
duke@1 95 $(POAGENERATEDFILES):: $(POA.IDL)
duke@1 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)
duke@1 97 $(RM) -r $(POAHELHOLFILES)
duke@1 98
duke@1 99 poa.compile: $(POAGENERATEDFILES)
duke@1 100
duke@1 101 poa.clean:
duke@1 102 $(RM) -r $(POAFILEDIR)
duke@1 103
duke@1 104 # DynAny Files and Rules
duke@1 105
duke@1 106 DYNANY_IDLJ_FLAGS=-i "$(SRC_DIR)/org/omg/CORBA" -corba 3.0 -fall -pkgPrefix DynamicAny org.omg
duke@1 107
duke@1 108 DYNANYFILES = $(DYNANY_GENERATED_java:%=$(GENSRCDIR)/%)
duke@1 109 DYNANYDELETEFILES = $(DYNANY_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
duke@1 110
duke@1 111 # Generating and deleting unused files to reduce images size
duke@1 112 $(DYNANYFILES): $(DYNAMIC_ANY.IDL)
duke@1 113 $(IDLJ) -td "$(GENSRCDIR)" $(DYNANY_IDLJ_FLAGS) $(DYNAMIC_ANY.IDL)
duke@1 114 $(RM) $(DYNANY_DIR)/*POA*
duke@1 115 $(RM) $(DYNANY_DIR)/*Holder*
duke@1 116 $(RM) $(DYNANYDELETEFILES)
duke@1 117
duke@1 118 dynany.compile: $(DYNANYFILES)
duke@1 119
duke@1 120 dynany.clean:
duke@1 121 $(RM) -r $(DYNANY_DIR)
duke@1 122
duke@1 123 # CosTransactions Files
duke@1 124 TRGENERATEDFILES = $(TR_GENERATED_java:%=$(GENSRCDIR)/%)
duke@1 125 TR_IDLJ_FLAGS =-i "$(SRC_DIR)/org/omg/PortableInterceptor" -i "$(SRC_DIR)/org/omg/PortableServer" -i "$(SRC_DIR)/org/omg/CosTransactions"
duke@1 126
duke@1 127 $(TRGENERATEDFILES):: $(COSTRANSACTIONS.IDL) $(COSTSINTEROP.IDL)
duke@1 128 $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg -pkgPrefix CosTransactions org.omg $(COSTRANSACTIONS.IDL)
duke@1 129 $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg -pkgPrefix CosTSInteroperation org.omg $(COSTSINTEROP.IDL)
duke@1 130 # $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
duke@1 131 # $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fallTIE -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
duke@1 132 # $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fall -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
duke@1 133 # $(IDLJ) -td "$(GENSRCDIR)" $(TR_IDLJ_FLAGS) -D CORBA3 -corba 3.0 -fallTIE -pkgPrefix CORBA org.omg $(TRANSACTIONS.IDL)
duke@1 134
duke@1 135 tr.compile: $(TRGENERATEDFILES)
duke@1 136
duke@1 137 tr.clean:
duke@1 138 $(RM) -f $(TRGENERATEDFILES)
duke@1 139
duke@1 140 #CosNaming Files
duke@1 141 NSGENERATEDFILES = $(NS_GENERATED_java:%=$(GENSRCDIR)/%)
duke@1 142
duke@1 143 # Compile NameService IDL file and then copy
duke@1 144 # _NamingContextImplBase.java and _BindingIteratorImplBase.java files
duke@1 145 # to GENSRC directory. Note that these two classes are deprecated.
duke@1 146 $(NSGENERATEDFILES): $(NAMESERVICE.IDL)
duke@1 147 $(IDLJ) -td "$(GENSRCDIR)" -i $(NAMESERVICEDIR) -fall -pkgPrefix CosNaming org.omg $(NAMESERVICE.IDL)
duke@1 148
duke@1 149 ns.compile: $(NSGENERATEDFILES)
duke@1 150
duke@1 151 ns.clean:
duke@1 152 $(RM) -f $(NSGENERATEDFILES)
duke@1 153
duke@1 154 #IOP compile
duke@1 155 IOPGENERATEDFILES = $(IOP_java:%=$(GENSRCDIR)/%)
duke@1 156 IOPDELETEFILES = $(IOP_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
duke@1 157
duke@1 158 $(IOPGENERATEDFILES):: $(IOP.IDL)
duke@1 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)
duke@1 160 $(RM) -r $(IOPDELETEFILES)
duke@1 161
duke@1 162 iop.compile: $(IOPGENERATEDFILES)
duke@1 163
duke@1 164 iop.clean:
duke@1 165 $(RM) $(IOPGENERATEDFILES)
duke@1 166
duke@1 167 #CORBAX compile
duke@1 168 CORBAXGENERATEDFILES = $(CORBA_java:%=$(GENSRCDIR)/%)
duke@1 169 CORBAXDUPLICATEFILES = $(CORBA_DUPLICATE_java:%=$(GENSRCDIR)/%)
duke@1 170
duke@1 171 $(CORBAXGENERATEDFILES):: $(CORBAX.IDL)
duke@1 172 $(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 $(CORBAX.IDL)
duke@1 173 $(RM) $(CORBAXDUPLICATEFILES)
duke@1 174
duke@1 175 corbax.compile: $(CORBAXGENERATEDFILES)
duke@1 176
duke@1 177 corbax.clean:
duke@1 178 $(RM) $(CORBAXGENERATEDFILES)
duke@1 179
duke@1 180 #Messaging compile
duke@1 181 MESSAGINGGENERATEDFILES = $(Messaging_java:%=$(GENSRCDIR)/%)
duke@1 182
duke@1 183 $(MESSAGINGGENERATEDFILES):: $(MESSAGING.IDL)
duke@1 184 $(IDLJ) -td "$(GENSRCDIR)" -i "$(SRC_DIR)/org/omg/PortableInterceptor" -i $(CORBA_IDL_DIR) -fall -corba 3.0 -pkgPrefix Messaging org.omg $(MESSAGING.IDL)
duke@1 185
duke@1 186 messaging.compile: $(MESSAGINGGENERATEDFILES)
duke@1 187
duke@1 188 messaging.clean:
duke@1 189 $(RM) $(MESSAGINGGENERATEDFILES)
duke@1 190
duke@1 191
duke@1 192
duke@1 193 #PortableInterceptor Files
duke@1 194 PIGENERATEDFILES = $(PI_GENERATED_java:%=$(GENSRCDIR)/%)
duke@1 195 PIHELHOLFILES = $(PI_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
duke@1 196
duke@1 197 $(PIGENERATEDFILES):: $(INTERCEPTORS.IDL)
duke@1 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)
duke@1 199 $(RM) $(PIHELHOLFILES)
duke@1 200
duke@1 201 pi.compile: $(PIGENERATEDFILES)
duke@1 202
duke@1 203 pi.clean:
duke@1 204 $(RM) -f $(PIGENERATEDFILES)
duke@1 205
duke@1 206
duke@1 207 ifdef STANDALONE_CORBA_WS
duke@1 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
duke@1 209 else
duke@1 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
duke@1 211 endif
duke@1 212
duke@1 213 include $(BUILDDIR)/common/Rules.gmk

mercurial