# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # #======================================================================= # Begin specific part to omniorb # (include from file adm/unix/make_omniorb generated by # adm/unix/make_omniorb.in) #======================================================================= # -* Makefile *- # Author : Patrick GOLDBRONN (CEA) # Date : 29/06/2001 # $Header$ # Client and server object are the same with omniorb # There are one header file and one source file generate #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ)) # dependencies between idl and its generated files # %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_builddir}/idl/%.idl $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $< # dependncies between idl files depend_idl: .depidl # we use cpp to generate dependencies between idl files. # we change cpp output to keep only idl file and transform it to get a suitable rule .depidl: $(IDL_FILES) @touch $@ @for dep in $? dummy; do \ if [ $$dep != "dummy" ]; then \ echo Building dependencies for $$dep; \ basedep=`basename $$dep .idl`; \ header="$$basedep"$(IDL_CLN_H); \ sed '\%^'"$$header"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \ $(CPP) $(C_DEPEND_FLAG) -I$(srcdir) $$dep 2>/dev/null | \ sed `echo "s%$$basedep\\.idl%$$header:%g"` | \ sed 's% $(srcdir)/% %g' | \ sed 's% $(top_srcdir)/% %g' | \ sed 's% $(top_builddir)/% %g' | \ sed 's%^.*:\.o: *%%' | sed 's%^ *\\ *%%'| sed 's%^ *\(.*\):%\1:%' | \ sed 's/\.idl/$(IDL_CLN_H)/' >>$@; \ echo '' >>$@; \ fi; \ done ; -include .depidl #======================================================================= # End specific part to omniorb #=======================================================================