39 -pkgPrefix messages com.sun.corba.se 40 41 define add_idl_package 42 # param 1 = MYPACKAGE 43 # param 2 = src root 44 # param 3 = gensrc root 45 # param 4 = source idl to compile 46 # param 5 = target idl package 47 # param 6 = delete these files that were output from the idlj 48 # param 7 = idls that match these patterns should be compiled with -oldImplBase 49 # param 8 = the idlj command 50 # Save the generated java files to a temporary directory so 51 # that we can find them and create proper dependencies. 52 # After that, we move them to the real gensrc target dir. 53 $4_TMPDIR:=tmp___$(subst /,_,$(patsubst $2/%,%,$4))___ 54 ifneq ($$(filter $7,$4),) 55 $4_OLDIMPLBASE:=-oldImplBase 56 $4_OLDIMPLBASE_MSG:=with -oldImplBase 57 endif 58 $5 : $4 59 $(MKDIR) -p $3/$$($4_TMPDIR) 60 $(RM) -rf $3/$$($4_TMPDIR) 61 $(MKDIR) -p $(dir $5) 62 $(ECHO) $(LOG_INFO) Compiling IDL $(patsubst $2/%,%,$4) 63 $8 -td $3/$$($4_TMPDIR) \ 64 -i $2/org/omg/CORBA \ 65 -i $2/org/omg/PortableInterceptor \ 66 -i $2/org/omg/PortableServer \ 67 -D CORBA3 -corba 3.0 \ 68 -fall \ 69 $$($4_OLDIMPLBASE) \ 70 $(PREFIXES) \ 71 $4 72 $(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6) 73 $(CP) -r $3/$$($4_TMPDIR)/* $3 74 ($(CD) $3/$$($4_TMPDIR) && $(FIND) . -type f | $(SED) 's!\./!$3/!g' | $(NAWK) '{ print $$$$1 ": $4" }' > $5) 75 $(RM) -rf $3/$$($4_TMPDIR) 76 endef 77 78 # Setup make rules for creating an IDL compilation. 79 # 80 # Parameter 1 is the name of the rule. This name is used as variable prefix, 81 # and the targets generated are listed in a variable by that name. 82 # | 39 -pkgPrefix messages com.sun.corba.se 40 41 define add_idl_package 42 # param 1 = MYPACKAGE 43 # param 2 = src root 44 # param 3 = gensrc root 45 # param 4 = source idl to compile 46 # param 5 = target idl package 47 # param 6 = delete these files that were output from the idlj 48 # param 7 = idls that match these patterns should be compiled with -oldImplBase 49 # param 8 = the idlj command 50 # Save the generated java files to a temporary directory so 51 # that we can find them and create proper dependencies. 52 # After that, we move them to the real gensrc target dir. 53 $4_TMPDIR:=tmp___$(subst /,_,$(patsubst $2/%,%,$4))___ 54 ifneq ($$(filter $7,$4),) 55 $4_OLDIMPLBASE:=-oldImplBase 56 $4_OLDIMPLBASE_MSG:=with -oldImplBase 57 endif 58 $5 : $4 59 $$(call LogInfo, Compiling IDL $(patsubst $2/%,%,$4)) 60 $$(call MakeDir, $$(@D)) 61 $(RM) -rf $3/$$($4_TMPDIR) 62 $8 -td $3/$$($4_TMPDIR) \ 63 -i $2/org/omg/CORBA \ 64 -i $2/org/omg/PortableInterceptor \ 65 -i $2/org/omg/PortableServer \ 66 -D CORBA3 -corba 3.0 \ 67 -fall \ 68 $$($4_OLDIMPLBASE) \ 69 $(PREFIXES) \ 70 $4 71 $(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6) 72 $(CP) -r $3/$$($4_TMPDIR)/* $3 73 ($(CD) $3/$$($4_TMPDIR) && $(FIND) . -type f | $(SED) 's!\./!$3/!g' | $(NAWK) '{ print $$$$1 ": $4" }' > $5) 74 $(RM) -rf $3/$$($4_TMPDIR) 75 endef 76 77 # Setup make rules for creating an IDL compilation. 78 # 79 # Parameter 1 is the name of the rule. This name is used as variable prefix, 80 # and the targets generated are listed in a variable by that name. 81 # |