Salome HOME
Join modifications from branch CEAFor_V3_2_0
[modules/med.git] / src / MEDMEM_SWIG / Makefile.in
1 #  MED MEDMEM_SWIG : binding of C++ implementation and Python
2 #
3 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5
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. 
10
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. 
15
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 
19
20 #  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 #
22 #
23 #
24 #  File   : Makefile.in
25 #  Author : Nadir BOUHAMOU (CEA/DEN/DM2S/SFME/LGLS)
26 #  Module : MED
27
28 top_srcdir=@top_srcdir@
29 top_builddir=../..
30 srcdir=@srcdir@
31 VPATH=.:$(srcdir)
32
33 @COMMENCE@
34
35 EXPORT_HEADERS = \
36         libMEDMEM_Swig.i \
37         my_typemap.i \
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 \
45
46 # Libraries targets
47
48 LIB = libMEDMEM_Swigcmodule.la
49
50 # LIB_SRC = \
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 \
57
58 ifeq (@SWIG_VERSION@, 1.3.21)
59 SWIG_DEF = libMEDMEM_Swig.i dummy.i
60
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
66         touch dummy_wrap.cxx
67 else
68 SWIG_DEF = libMEDMEM_Swig.i
69 endif
70
71 EXPORT_PYSCRIPTS = libMEDMEM_Swig.py \
72                    medmem.py \
73                    med_test1.py \
74                    med_test2.py \
75                    med_test3.py \
76                    med_test_grid.py \
77                    med_test_skin.py \
78                    medMeshing_test.py \
79                    med_field_anal.py \
80                    med_opfield_test.py \
81                    med_opsupp_test.py \
82                    test_gibi.py \
83                    test_porflow.py \
84                    testDriverAscii.py \
85                    testGaussLocalization.py \
86                    testMedObj.py \
87                    test_profil_MedFieldDriver.py \
88                    testWriteAndFam.py \
89                    testMedMemGeneral.py
90
91 #############################################################################
92
93 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@//salome 
94 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
95
96 CPPFLAGS+= $(PYTHON_INCLUDES) $(MED2_INCLUDES) $(HDF5_INCLUDES)
97 CXXFLAGS+= @CXXTMPDPTHFLAGS@
98 LIBS= $(PYTHON_LIBS)
99 LDFLAGS+= -lmedmem $(MED2_LIBS) $(HDF5_LIBS)
100
101 ifeq ($(MED_WITH_KERNEL),yes)
102   CPPFLAGS+= ${KERNEL_CXXFLAGS}
103   CXXFLAGS+= ${KERNEL_CXXFLAGS}
104   LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace
105 endif
106 #############################################################################
107
108 @CONCLUDE@