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)
12 # Client and server object are the same with omniorb
13 # There are one header file and one source file generate
15 #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
17 # dependancies between idl and it's generated files
18 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${KERNEL_ROOT_DIR}/idl/salome/%.idl
19 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
21 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${GEOM_ROOT_DIR}/idl/salome/%.idl
22 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
24 #%$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${MED_ROOT_DIR}/idl/salome/%.idl
25 # $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
27 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${SMESH_ROOT_DIR}/idl/salome/%.idl
28 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
30 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_builddir}/idl/salome/%.idl
31 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
33 # dependncies between idl files
36 # we use cpp to generate dependencies between idl files.
37 # we change cpp output to keep only idl file and transform it to get a suitable rule
40 @for dep in $? dummy; do \
41 if [ $$dep != "dummy" ]; then \
42 echo Building dependencies for $$dep; \
43 basedep=`basename $$dep .idl`; \
44 header="$$basedep"$(IDL_CLN_H); \
45 sed '\%^'"$$header"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
46 $(CPP) $(C_DEPEND_FLAG) -I$(srcdir) $$dep 2>/dev/null | \
47 sed `echo "s%$$basedep\\.idl%$$header:%g"` | \
48 sed 's% $(srcdir)/% %g' | \
49 sed 's% $(top_srcdir)/% %g' | \
50 sed 's% $(top_builddir)/% %g' | \
51 sed 's%^.*:\.o: *%%' | sed 's%^ *\\ *%%'| sed 's%^ *\(.*\):%\1:%' | \
52 sed 's/\.idl/$(IDL_CLN_H)/' >>$@; \
59 #=======================================================================
60 # End specific part to omniorb
61 #=======================================================================