Salome HOME
Merge from V6_main 13/12/2012
[tools/medcoupling.git] / src / ParaMEDMEM_Swig / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  MED MEDMEM_SWIG : binding of C++ implementation and Python
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 salomepython_PYTHON = ParaMEDMEM.py
25 salomepyexec_LTLIBRARIES = _ParaMEDMEM.la
26
27 salomeinclude_HEADERS =  \
28         ParaMEDMEM.i
29
30 SWIG_DEF = ParaMEDMEM.i ParaMEDMEM.typemap
31
32 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) $(MPI_INCLUDES)  -I$(srcdir)/../ParaMEDMEM -I$(srcdir)/../MEDCoupling -I$(srcdir)/../MEDCoupling_Swig \
33         -I$(srcdir)/../MEDLoader/Swig -I$(srcdir)/../INTERP_KERNEL -I$(srcdir)/../INTERP_KERNEL/Bases -I$(srcdir)/../ParaMEDLoader        \
34         -I$(srcdir)/../MEDLoader
35
36 dist__ParaMEDMEM_la_SOURCES   = $(SWIG_DEF)
37 nodist__ParaMEDMEM_la_SOURCES = ParaMEDMEM_wrap.cxx
38 ParaMEDMEM.py : ParaMEDMEM_wrap.cxx
39
40 ParaMEDMEM_wrap.cxx: $(SWIG_DEF)
41         $(SWIG) $(SWIG_FLAGS) -o $@  $<
42
43 _ParaMEDMEM_la_CPPFLAGS = $(PYTHON_INCLUDES) \
44         $(MED3_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
45         -I$(srcdir)/../INTERP_KERNEL \
46         $(MPI_INCLUDES) -I$(srcdir)/../ParaMEDMEM -I$(srcdir)/../MEDCoupling_Swig -I$(srcdir)/../INTERP_KERNEL/Bases \
47         -I$(srcdir)/../MEDCoupling -I$(srcdir)/../ParaMEDLoader -I$(srcdir)/../MEDLoader -I$(srcdir)/../MEDLoader/Swig
48
49 _ParaMEDMEM_la_LDFLAGS  = -module $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(PYTHON_LIBS) $(MPI_LIBS) \
50         ../MEDCoupling/libmedcoupling.la ../INTERP_KERNEL/libinterpkernel.la \
51         ../ParaMEDMEM/libparamedmem.la ../ParaMEDLoader/libparamedloader.la
52
53 if MED_ENABLE_KERNEL
54   _ParaMEDMEM_la_CPPFLAGS += ${KERNEL_CXXFLAGS}
55   _ParaMEDMEM_la_LDFLAGS  += ${KERNEL_LDFLAGS} -lSALOMELocalTrace
56 endif
57
58 CLEANFILES = ParaMEDMEM_wrap.cxx ParaMEDMEM.py
59
60 dist_salomescript_DATA= test_InterpKernelDEC.py \
61                         test_NonCoincidentDEC.py \
62                         test_StructuredCoincidentDEC.py \
63                         ParaMEDMEM.py