]> SALOME platform Git repositories - modules/med.git/blob - src/MEDMEM_SWIG/Makefile.am
Salome HOME
MEDMEM suppression
[modules/med.git] / src / MEDMEM_SWIG / Makefile.am
1 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
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 = libMEDMEM_Swig.py
25 salomepyexec_LTLIBRARIES = _libMEDMEM_Swig.la
26
27 salomeinclude_HEADERS =  \
28         libMEDMEM_Swig.i \
29         my_typemap.i     \
30         MEDMEM_SWIG_Templates.hxx 
31
32 if MED_SWIG_1_3_21
33 SWIG_DEF = libMEDMEM_Swig.i dummy.i
34
35 dummy_wrap.cxx: libMEDMEM_Swig_wrap.cxx
36         sed -e 's/SwigValueWrapper< vector<FAMILY \* > >/vector<FAMILY \* >/g' libMEDMEM_Swig_wrap.cxx > toto
37         mv toto libMEDMEM_Swig_wrap.cxx
38         sed -e 's/SwigValueWrapper< vector<SUPPORT \* > const >/vector<SUPPORT \* >/g' libMEDMEM_Swig_wrap.cxx > toto
39         mv toto libMEDMEM_Swig_wrap.cxx
40         touch dummy_wrap.cxx
41 else !MED_SWIG_1_3_21
42 SWIG_DEF = libMEDMEM_Swig.i
43 endif
44
45 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir)
46
47 dist__libMEDMEM_Swig_la_SOURCES   = libMEDMEM_Swig.i
48 nodist__libMEDMEM_Swig_la_SOURCES = libMEDMEM_Swig_wrap.cxx
49 libMEDMEM_Swig.py: libMEDMEM_Swig_wrap.cxx
50
51 libMEDMEM_Swig_wrap.cxx: $(SWIG_DEF)
52         $(SWIG) $(SWIG_FLAGS) -o $@  $<
53
54 _libMEDMEM_Swig_la_CPPFLAGS = \
55         $(PYTHON_INCLUDES) $(MED3_INCLUDES) $(HDF5_INCLUDES) $(XDR_CPPFLAGS) @CXXTMPDPTHFLAGS@ \
56         -I$(srcdir)/../MEDMEM \
57         -I$(srcdir)/../INTERP_KERNEL \
58         -I$(srcdir)/../INTERP_KERNEL/Bases \
59         -I$(srcdir)/../INTERP_KERNEL/GaussPoints
60
61 _libMEDMEM_Swig_la_LDFLAGS  = -module $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(PYTHON_LIBS) $(XDR_LIBS) \
62         ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la
63
64 CLEANFILES = libMEDMEM_Swig_wrap.cxx libMEDMEM_Swig.py
65
66 dist_salomescript_DATA   = \
67                    medmem.py \
68                    med_test1.py \
69                    med_test2.py \
70                    med_test3.py \
71                    med_test_grid.py \
72                    med_test_skin.py \
73                    medMeshing_test.py \
74                    med_field_anal.py \
75                    med_opfield_test.py \
76                    med_opsupp_test.py \
77                    test_gibi.py \
78                    test_porflow.py \
79                    testDriverAscii.py \
80                    testGaussLocalization.py \
81                    test_profil_MedFieldDriver.py \
82                    testWriteAndFam.py \
83                    testMedMemGeneral.py \
84                    testMedMemCxxTests.py \
85                    dumpMEDMEM.py \
86                    ensightMedEnsight_test.py \
87                    medEnsightMed_test.py \
88                    medNumPy_test.py
89
90 dist_salomescript_SCRIPTS = \
91                    med2sauv \
92                    sauv2med \
93                    avs2med
94
95 dist_salomepython_DATA = \
96                    medutilities.py
97
98 #TESTS = medMeshing_test.py medNumPy_test.py 
99 #TESTS_ENVIRONMENT = $(PYTHON)
100
101 install-data-hook:
102         @for f in $(dist_salomescript_SCRIPTS) ; do \
103           chmod -f a+x $(DESTDIR)$(salomescriptdir)/$$f ; \
104         done