1 #=======================================================================
2 # Begin specific part to omniorb
3 # (include from file adm/unix/make_omniorb generated by
4 # adm/unix/make_omniorb.in)
5 #=======================================================================
8 # Author : Patrick GOLDBRONN (CEA)
13 # Client and server object are the same with omniorb
14 # There are one header file and one source file generate
16 #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
18 # dependancies between idl and it's generated files
19 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${KERNEL_ROOT_DIR}/idl/salome/%.idl
20 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
22 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${GEOM_ROOT_DIR}/idl/salome/%.idl
23 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
25 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${MED_ROOT_DIR}/idl/salome/%.idl
26 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
28 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_srcdir}/idl/%.idl
29 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
31 # dependncies between idl files
34 # we use cpp to generate dependencies between idl files.
35 # we change cpp output to keep only idl file and transform it to get a suitable rule
38 @for dep in $? dummy; do \
39 if [ $$dep != "dummy" ]; then \
40 echo Building dependencies for $$dep; \
41 basedep=`basename $$dep .idl`; \
42 header="$$basedep"$(IDL_CLN_H); \
43 sed '\%^'"$$header"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
44 $(CPP) $(C_DEPEND_FLAG) -I$(srcdir) $$dep 2>/dev/null | \
45 sed `echo "s%$$basedep\\.idl%$$header:%g"` | \
46 sed 's% $(srcdir)/% %g' | \
47 sed 's% $(top_srcdir)/% %g' | \
48 sed 's% $(top_builddir)/% %g' | \
49 sed 's%^.*:\.o: *%%' | sed 's%^ *\\ *%%'| sed 's%^ *\(.*\):%\1:%' | \
50 sed 's/\.idl/$(IDL_CLN_H)/' >>$@; \
57 #=======================================================================
58 # End specific part to omniorb
59 #=======================================================================