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_Templates.hxx
39 # MEDMEM_SWIG_MedFieldDoubleDriver.hxx \
40 # MEDMEM_SWIG_MedFieldIntDriver.hxx \
41 # MEDMEM_SWIG_AsciiFieldDoubleDriver.hxx \
42 # MEDMEM_SWIG_AsciiFieldIntDriver.hxx \
43 # MEDMEM_SWIG_FieldDouble.hxx \
44 # MEDMEM_SWIG_FieldInt.hxx \
48 LIB = libMEDMEM_Swigcmodule.la
51 # MEDMEM_SWIG_MedFieldDoubleDriver.cxx \
52 # MEDMEM_SWIG_MedFieldIntDriver.cxx \
53 # MEDMEM_SWIG_AsciiFieldDoubleDriver.cxx \
54 # MEDMEM_SWIG_AsciiFieldIntDriver.cxx
55 # MEDMEM_SWIG_FieldDouble.cxx \
56 # MEDMEM_SWIG_FieldInt.cxx \
58 ifeq (@SWIG_VERSION@, 1.3.21)
59 SWIG_DEF = libMEDMEM_Swig.i dummy.i
61 dummy_wrap.cxx: libMEDMEM_Swig_wrap.cxx
62 sed -e 's/SwigValueWrapper< vector<FAMILY \* > >/vector<FAMILY \* >/g' libMEDMEM_Swig_wrap.cxx > toto
63 mv toto libMEDMEM_Swig_wrap.cxx
64 sed -e 's/SwigValueWrapper< vector<SUPPORT \* > const >/vector<SUPPORT \* >/g' libMEDMEM_Swig_wrap.cxx > toto
65 mv toto libMEDMEM_Swig_wrap.cxx
68 SWIG_DEF = libMEDMEM_Swig.i
71 EXPORT_PYSCRIPTS = libMEDMEM_Swig.py \
85 testGaussLocalization.py \
87 test_profil_MedFieldDriver.py \
91 #############################################################################
93 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@//salome
94 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
96 CPPFLAGS+= $(PYTHON_INCLUDES) $(MED2_INCLUDES) $(HDF5_INCLUDES)
97 CXXFLAGS+= @CXXTMPDPTHFLAGS@
99 LDFLAGS+= -lmedmem $(MED2_LIBS) $(HDF5_LIBS)
101 ifeq ($(MED_WITH_KERNEL),yes)
102 CPPFLAGS+= ${KERNEL_CXXFLAGS}
103 CXXFLAGS+= ${KERNEL_CXXFLAGS}
104 LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace
106 #############################################################################