Salome HOME
MED file mesh loading on demand.
[modules/med.git] / src / MEDCalculator / 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 bin_PROGRAMS = spython
26
27 lib_LTLIBRARIES = libmedcalculatorspython.la _MEDCalculator.la 
28
29 salomeinclude_HEADERS =  \
30         MEDCalculator.i MEDCalculatorTypemaps.i SPythonInterpreter.hxx SPythonParser.hxx MedCalculatorSPythonDefines.hxx
31
32 SWIG_DEF = MEDCalculator.i MEDCalculatorTypemaps.i
33
34 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../../MEDCoupling \
35         -I$(srcdir)/../../MEDCoupling_Swig -I$(srcdir)/../../MEDLoader -I$(srcdir)/../../MEDLoader/Swig \
36         -I$(srcdir)/../../INTERP_KERNEL -I$(srcdir)/../../INTERP_KERNEL/Bases
37
38 dist__MEDCalculator_la_SOURCES   = $(SWIG_DEF)
39 nodist__MEDCalculator_la_SOURCES = MEDCalculator_wrap.cxx
40 MEDCalculator.py: MEDCalculator_wrap.cxx
41
42 MEDCalculator_wrap.cxx: $(SWIG_DEF)
43         $(SWIG) $(SWIG_FLAGS) -o $@  $<
44
45 _MEDCalculator_la_CPPFLAGS = $(PYTHON_INCLUDES) \
46         $(MED3_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
47         -I$(srcdir)/../../INTERP_KERNEL \
48         -I$(srcdir)/.. -I$(srcdir)/../../MEDCoupling_Swig -I$(srcdir)/../../INTERP_KERNEL/Bases \
49         -I$(srcdir)/../../MEDCoupling -I$(srcdir)/../../MEDLoader -I$(srcdir)/../../MEDLoader/Swig
50
51 _MEDCalculator_la_LDFLAGS  = -module $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(PYTHON_LIBS) \
52         ../libmedcalculator.la
53
54 dist_libmedcalculatorspython_la_SOURCES = SPythonInterpreter.cxx SPythonParser.cxx
55
56 libmedcalculatorspython_la_CPPFLAGS = $(PYTHON_INCLUDES) -I$(srcdir)/../../INTERP_KERNEL/Bases \
57                                       -I$(srcdir)/../../INTERP_KERNEL    
58
59 libmedcalculatorspython_la_LDFLAGS = $(PYTHON_LIBS) ../../INTERP_KERNEL/libinterpkernel.la
60
61 spython_CPPFLAGS = $(PYTHON_INCLUDES)
62
63 spython_LDFLAGS = $(PYTHON_LIBS)
64 spython_LDADD   = libmedcalculatorspython.la
65
66 dist_spython_SOURCES = spython.cxx
67
68 CLEANFILES = MEDCalculator_wrap.cxx MEDCalculator.py
69
70 dist_salomescript_DATA= MEDCalculator.py MEDCalculatorBasicsTest.py test2.spy
71
72 UNIT_TEST_PROG = MEDCalculatorBasicsTest.py