1 # Copyright (C) 2006-2022 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 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24 SALOME_Component.idl \
25 SALOME_Exception.idl \
27 SALOME_GenericObj.idl \
29 SALOMEDS_Attributes.idl \
33 SALOME_ComponentSK.cc \
34 SALOME_ExceptionSK.cc \
36 SALOME_GenericObjSK.cc \
38 SALOMEDS_AttributesSK.cc \
44 HXX2SALOME_GENERIC_CLASS_NAME_Gen.idl
46 HXX2SALOME_GENERIC_CLASS_NAME_GenSK.cc
48 lib_LIBRARIES = libHXX2SALOME_GENERIC_CLASS_NAMESK.a
50 AM_CXXFLAGS = -fPIC -DPIC
51 libHXX2SALOME_GENERIC_CLASS_NAMESK_a_SOURCES = $(IDL_SRC)
52 libHXX2SALOME_GENERIC_CLASS_NAMESK_a_CPPFLAGS = \
53 -I$(top_builddir)/adm_local/unix \
54 -I$(top_builddir)/idl \
55 @CORBA_CXXFLAGS@ @CORBA_INCLUDES@
57 salomeidl_DATA = compo1_Gen.idl
59 # These variables defines the building process of CORBA files
60 OMNIORB_IDL = @OMNIORB_IDL@
61 OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
62 IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(top_builddir)/salome/idl -I${srcdir} -I${KERNEL_ROOT_DIR}/idl/salome -DXXX
64 %SK.cc %.hh: ${srcdir}/%.idl
65 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
67 %SK.cc %.hh: ${KERNEL_ROOT_DIR}/idl/salome/%.idl
68 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
70 %SK.cc %.hh: ${MED_ROOT_DIR}/idl/salome/%.idl
71 $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
74 -rm -f *.hh *.cc .depidl
76 # we use cpp to generate dependencies between idl files.
77 # option x c tells the preprocessor to consider idl as a c file.
78 # if an idl is modified, all idl dependencies are rebuilt
82 @for dep in $^ dummy; do \
83 if [ $$dep != "dummy" ]; then \
84 echo Building dependencies for $$dep; \
85 $(CPP) $(C_DEPEND_FLAG) -x c -I$(srcdir) -I${KERNEL_ROOT_DIR}/idl/salome $$dep 2>/dev/null | \
86 sed 's/\.o/\SK.cc/' >>$@; \