1 # Copyright (C) 2006-2021 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #=======================================================================
21 # Begin specific part to omniorb
22 # (include from file adm/unix/make_omniorb generated by
23 # adm/unix/make_omniorb.in)
24 #=======================================================================
26 # Author : Patrick GOLDBRONN (CEA)
29 # Client and server object are the same with omniorb
30 # There are one header file and one source file generate
31 #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
32 # dependancies between idl and it's generated files
34 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${KERNEL_ROOT_DIR}/idl/salome/%.idl
35 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
37 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${MED_ROOT_DIR}/idl/salome/%.idl
38 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
40 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_srcdir}/idl/%.idl
41 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
43 # dependncies between idl files
46 # we use cpp to generate dependencies between idl files.
47 # we change cpp output to keep only idl file and transform it to get a suitable rule
50 @for dep in $? dummy; do \
51 if [ $$dep != "dummy" ]; then \
52 echo Building dependencies for $$dep; \
53 basedep=`basename $$dep .idl`; \
54 header="$$basedep"$(IDL_CLN_H); \
55 sed '\%^'"$$header"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
56 $(CPP) $(C_DEPEND_FLAG) -I$(srcdir) $$dep 2>/dev/null | \
57 sed `echo "s%$$basedep\\.idl%$$header:%g"` | \
58 sed 's% $(srcdir)/% %g' | \
59 sed 's% $(top_srcdir)/% %g' | \
60 sed 's% $(top_builddir)/% %g' | \
61 sed 's%^.*:\.o: *%%' | sed 's%^ *\\ *%%'| sed 's%^ *\(.*\):%\1:%' | \
62 sed 's/\.idl/$(IDL_CLN_H)/' >>$@; \
69 #=======================================================================
70 # End specific part to omniorb
71 #=======================================================================