1 # MED MEDMEM_SWIG : binding of C++ implementation and Python
3 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
25 # Author : Nadir BOUHAMOU (CEA/DEN/DM2S/SFME/LGLS)
28 top_srcdir=@top_srcdir@
38 MEDMEM_SWIG_FieldDouble.hxx \
39 MEDMEM_SWIG_FieldInt.hxx \
40 MEDMEM_SWIG_MedFieldDoubleDriver.hxx \
41 MEDMEM_SWIG_MedFieldIntDriver.hxx \
42 MEDMEM_SWIG_AsciiFieldDoubleDriver.hxx \
43 MEDMEM_SWIG_AsciiFieldIntDriver.hxx \
44 MEDMEM_SWIG_Templates.hxx
48 LIB = libMEDMEM_Swigcmodule.la
50 LIB_SRC = MEDMEM_SWIG_FieldDouble.cxx \
51 MEDMEM_SWIG_FieldInt.cxx \
52 MEDMEM_SWIG_MedFieldDoubleDriver.cxx \
53 MEDMEM_SWIG_MedFieldIntDriver.cxx \
54 MEDMEM_SWIG_AsciiFieldDoubleDriver.cxx \
55 MEDMEM_SWIG_AsciiFieldIntDriver.cxx
57 ifeq (@SWIG_VERSION@, 1.3.21)
58 SWIG_DEF = libMEDMEM_Swig.i dummy.i
60 dummy_wrap.cxx: libMEDMEM_Swig_wrap.cxx
61 sed -e 's/SwigValueWrapper< vector<FAMILY \* > >/vector<FAMILY \* >/g' libMEDMEM_Swig_wrap.cxx > toto
62 mv toto libMEDMEM_Swig_wrap.cxx
63 sed -e 's/SwigValueWrapper< vector<SUPPORT \* > const >/vector<SUPPORT \* >/g' libMEDMEM_Swig_wrap.cxx > toto
64 mv toto libMEDMEM_Swig_wrap.cxx
67 SWIG_DEF = libMEDMEM_Swig.i
70 EXPORT_PYSCRIPTS = libMEDMEM_Swig.py \
84 #############################################################################
86 LDFLAGS= -L$(top_builddir)/lib/salome
87 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
89 CPPFLAGS+= $(PYTHON_INCLUDES) $(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
90 CXXFLAGS+= @CXXTMPDPTHFLAGS@ -I${KERNEL_ROOT_DIR}/include/salome
92 #LDFLAGS+= -lmedmem $(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome
93 # change motivated by the bug KERNEL4778.
94 LDFLAGS+= -lmedmem $(MED2_LIBS) $(HDF5_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace
96 #############################################################################