]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/ParaMEDMEM_Swig/Makefile.am
Salome HOME
Merge from BR_V5_DEV 16Feb09
[tools/medcoupling.git] / src / ParaMEDMEM_Swig / Makefile.am
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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24
25 lib_LTLIBRARIES = _libParaMEDMEM_Swig.la
26
27 salomeinclude_HEADERS =  \
28         libParaMEDMEM_Swig.i
29
30 SWIG_DEF = libParaMEDMEM_Swig.i
31
32 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) $(MPI_INCLUDES) -I$(srcdir)/../MEDMEM_SWIG
33
34 dist__libParaMEDMEM_Swig_la_SOURCES   = libParaMEDMEM_Swig.i
35 nodist__libParaMEDMEM_Swig_la_SOURCES = libParaMEDMEM_Swig_wrap.cxx
36 libParaMEDMEM_Swig.py: libParaMEDMEM_Swig_wrap.cxx
37
38 libParaMEDMEM_Swig_wrap.cxx: $(SWIG_DEF)
39         $(SWIG) $(SWIG_FLAGS) -o $@  $<
40
41 _libParaMEDMEM_Swig_la_CPPFLAGS = $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) $(PYTHON_INCLUDES) \
42         $(MED2_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
43         -I$(srcdir)/../MEDMEM -I$(srcdir)/../MEDWrapper/V2_1/Core -I$(srcdir)/../INTERP_KERNEL \
44         $(MPI_INCLUDES) -I$(srcdir)/../ParaMEDMEM -I$(srcdir)/../MEDMEM_SWIG -I$(srcdir)/../INTERP_KERNEL/Bases \
45         -I$(srcdir)/../MEDCoupling
46
47 _libParaMEDMEM_Swig_la_LDFLAGS  = -module $(MED2_LIBS) $(HDF5_LIBS) $(PYTHON_LIBS) $(MPI_LIBS) \
48         ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la \
49         ../ParaMEDMEM/libparamedmem.la 
50
51 if MED_ENABLE_KERNEL
52   _libParaMEDMEM_Swig_la_CPPFLAGS += ${KERNEL_CXXFLAGS}
53   _libParaMEDMEM_Swig_la_LDFLAGS  += ${KERNEL_LDFLAGS} -lSALOMELocalTrace
54 endif
55
56 CLEANFILES = libParaMEDMEM_Swig_wrap.cxx libParaMEDMEM_Swig.py
57
58 nodist_salomescript_DATA= libParaMEDMEM_Swig.py
59
60 dist_salomescript_DATA= test_IntersectionDEC.py \
61                         test_NonCoincidentDEC.py \
62                         test_StructuredCoincodentDEC.py \
63                         ParaMEDMEM.py