Salome HOME
a1a8fd35995a31da668f0a80ba5bf5f315a399ff
[modules/med.git] / src / MEDLoader / Swig / Makefile.am
1 # Copyright (C) 2007-2013  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 # Author : Anthony Geay (CEA/DEN)
20
21 #  MED MEDMEM_SWIG : binding of C++ implementation and Python
22 #
23 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24
25 EXTRA_DIST += SauvLoaderTest.py MEDLoaderExamplesTest.py
26
27 lib_LTLIBRARIES = _MEDLoader.la
28
29 salomeinclude_HEADERS =  \
30         MEDLoader.i MEDLoaderTypemaps.i MEDLoaderCommon.i
31
32 SWIG_DEF = MEDLoader.i MEDLoaderTypemaps.i MEDLoaderCommon.i
33
34 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../../MEDCoupling -I$(srcdir)/../../MEDCoupling_Swig \
35         -I$(srcdir)/../../INTERP_KERNEL -I$(srcdir)/../../INTERP_KERNEL/Bases
36
37 dist__MEDLoader_la_SOURCES   = $(SWIG_DEF)
38 nodist__MEDLoader_la_SOURCES = MEDLoader_wrap.cxx
39 MEDLoader.py: MEDLoader_wrap.cxx
40
41 MEDLoader_wrap.cxx: $(SWIG_DEF)
42         $(SWIG) $(SWIG_FLAGS) -o $@  $<
43
44 _MEDLoader_la_CPPFLAGS = $(PYTHON_INCLUDES) \
45         $(MED3_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
46         -I$(srcdir)/../../INTERP_KERNEL \
47         -I$(srcdir)/.. -I$(srcdir)/../../MEDCoupling_Swig -I$(srcdir)/../../INTERP_KERNEL/Bases \
48         -I$(srcdir)/../../MEDCoupling
49
50 _MEDLoader_la_LDFLAGS  = -module $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(PYTHON_LIBS) \
51         ../../MEDCoupling/libmedcoupling.la ../../INTERP_KERNEL/libinterpkernel.la \
52         ../libmedloader.la
53
54 CLEANFILES = MEDLoader_wrap.cxx MEDLoader.py
55
56 dist_salomescript_DATA= MEDLoaderDataForTest.py MEDLoaderTest.py MEDLoaderTest2.py MEDLoaderTest3.py libMEDLoader_Swig.py med2sauv sauv2med medutilities.py
57 nodist_salomescript_DATA = MEDLoader.py
58
59 UNIT_TEST_PROG = MEDLoaderTest.py MEDLoaderTest2.py