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

     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 #
    26 BUILDDIR = ../../..
    28 PACKAGE = org.omg
    29 PRODUCT = org
    31 include $(BUILDDIR)/common/Defs.gmk
    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
    45 ifdef STANDALONE_CORBA_WS
    46 include $(CORBA_JMK_DIRECTORY)org_omg_CosTransactions.jmk
    47 endif
    49 #
    50 # Rules
    51 #
    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
    62 #
    63 # These rules are for compiling/cleaning the POA generated stuff
    64 #
    66 SRC_DIR = $(SHARE_SRC)/classes
    67 CORBA_IDL_DIR = $(SRC_DIR)/org/omg/PortableServer
    69 # IDL Files
    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
    82 # IDL Directories
    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
    90 # POA files and Rules
    92 POAGENERATEDFILES = $(POA_GENERATED_java:%=$(GENSRCDIR)/%)
    93 POAHELHOLFILES =    $(POA_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
    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)
    99 poa.compile: $(POAGENERATEDFILES)
   101 poa.clean: 
   102 	$(RM) -r $(POAFILEDIR)
   104 # DynAny Files and Rules
   106 DYNANY_IDLJ_FLAGS=-i "$(SRC_DIR)/org/omg/CORBA" -corba 3.0 -fall -pkgPrefix DynamicAny org.omg
   108 DYNANYFILES = $(DYNANY_GENERATED_java:%=$(GENSRCDIR)/%)
   109 DYNANYDELETEFILES = $(DYNANY_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
   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)
   118 dynany.compile: $(DYNANYFILES)
   120 dynany.clean:
   121 	$(RM) -r $(DYNANY_DIR)
   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"
   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)
   135 tr.compile: $(TRGENERATEDFILES)
   137 tr.clean:
   138 	$(RM) -f $(TRGENERATEDFILES)
   140 #CosNaming Files
   141 NSGENERATEDFILES = $(NS_GENERATED_java:%=$(GENSRCDIR)/%)
   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)
   149 ns.compile: $(NSGENERATEDFILES)
   151 ns.clean:
   152 	$(RM) -f $(NSGENERATEDFILES)
   154 #IOP compile 
   155 IOPGENERATEDFILES = $(IOP_java:%=$(GENSRCDIR)/%)
   156 IOPDELETEFILES =    $(IOP_TO_DELETE_FILES:%=$(GENSRCDIR)/%)
   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)
   162 iop.compile: $(IOPGENERATEDFILES)
   164 iop.clean: 
   165 	$(RM) $(IOPGENERATEDFILES)
   167 #CORBAX compile 
   168 CORBAXGENERATEDFILES = $(CORBA_java:%=$(GENSRCDIR)/%)
   169 CORBAXDUPLICATEFILES = $(CORBA_DUPLICATE_java:%=$(GENSRCDIR)/%)
   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)
   175 corbax.compile: $(CORBAXGENERATEDFILES)
   177 corbax.clean: 
   178 	$(RM) $(CORBAXGENERATEDFILES)
   180 #Messaging compile 
   181 MESSAGINGGENERATEDFILES = $(Messaging_java:%=$(GENSRCDIR)/%)
   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)
   186 messaging.compile: $(MESSAGINGGENERATEDFILES)
   188 messaging.clean: 
   189 	$(RM) $(MESSAGINGGENERATEDFILES)
   193 #PortableInterceptor Files
   194 PIGENERATEDFILES = $(PI_GENERATED_java:%=$(GENSRCDIR)/%)
   195 PIHELHOLFILES = $(PI_GENERATED_HELP_HOL_java:%=$(GENSRCDIR)/%)
   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)
   201 pi.compile: $(PIGENERATEDFILES)
   203 pi.clean:
   204 	$(RM) -f $(PIGENERATEDFILES)
   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
   213 include $(BUILDDIR)/common/Rules.gmk

mercurial