Salome HOME
SUPERVGRAPH_EXPORT added for windows compilation
[modules/gui.git] / adm_local / unix / make_omniorb.in
1 #=======================================================================
2 # Begin specific part to omniorb 
3 # (include from file adm/unix/make_omniorb generated by 
4 # adm/unix/make_omniorb.in)
5 #=======================================================================
6 # -* Makefile *- 
7 #
8 #
9
10 # Client and server object are the same with omniorb
11 # There are one header file and one source file generate
12
13 #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
14
15 # dependancies between idl and it's generated files
16 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${KERNEL_ROOT_DIR}/idl/salome/%.idl
17         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
18
19 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_srcdir}/idl/%.idl
20         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
21
22 # dependncies between idl files
23 depend_idl: .depidl
24
25 # we use cpp to generate dependencies between idl files.
26 # we change cpp output to keep only idl file and transform it to get a suitable rule
27 .depidl: $(IDL_FILES)
28         @touch $@
29         @for dep in $? dummy; do \
30           if [ $$dep != "dummy" ]; then \
31             echo Building dependencies for $$dep; \
32             basedep=`basename $$dep .idl`; \
33             header="$$basedep"$(IDL_CLN_H); \
34             sed '\%^'"$$header"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
35             $(CPP) $(C_DEPEND_FLAG) -I$(srcdir) $$dep 2>/dev/null | \
36             sed `echo "s%$$basedep\\.idl%$$header:%g"` | \
37             sed 's% $(srcdir)/% %g' | \
38             sed 's% $(top_srcdir)/% %g' | \
39             sed 's% $(top_builddir)/% %g' | \
40             sed 's%^.*:\.o: *%%' | sed 's%^ *\\ *%%'| sed 's%^ *\(.*\):%\1:%' | \
41             sed 's/\.idl/$(IDL_CLN_H)/' >>$@; \
42             echo ''  >>$@; \
43           fi; \
44         done ;
45
46 -include .depidl
47
48 #=======================================================================
49 # End specific part to omniorb 
50 #=======================================================================