Salome HOME
Copyrights update 2015.
[modules/yacs.git] / src / wrappergen / bin / HXX2SALOME_GENERIC_CLASS_NAME_SRC / adm_local / unix / make_omniorb.in
1 # Copyright (C) 2006-2015  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #=======================================================================
21 # Begin specific part to omniorb 
22 # (include from file adm/unix/make_omniorb generated by 
23 # adm/unix/make_omniorb.in)
24 #=======================================================================
25 # -* Makefile *- 
26 # Author : Patrick GOLDBRONN (CEA)
27 # Date : 29/06/2001
28 # $Header$
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
33 #
34 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${KERNEL_ROOT_DIR}/idl/salome/%.idl
35         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
36
37 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${MED_ROOT_DIR}/idl/salome/%.idl
38         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
39
40 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_srcdir}/idl/%.idl
41         $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
42
43 # dependncies between idl files
44 depend_idl: .depidl
45
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
48 .depidl: $(IDL_FILES)
49         @touch $@
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)/' >>$@; \
63             echo ''  >>$@; \
64           fi; \
65         done ;
66
67 -include .depidl
68
69 #=======================================================================
70 # End specific part to omniorb 
71 #=======================================================================