]> SALOME platform Git repositories - modules/med.git/blob - src/MedCorba_Swig/Makefile.am
Salome HOME
MEDMEM suppression
[modules/med.git] / src / MedCorba_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 MedCorba_Swig : binding of MED CORBA objects woth Python
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 salomepython_PYTHON = libMedCorba_Swig.py
25 salomepyexec_LTLIBRARIES = _libMedCorba_Swig.la
26
27 if MED_SWIG_1_3_21
28 SWIG_DEF = libMedCorba_Swig.i dummy.i
29
30 dummy_wrap.cxx: libMedCorba_Swig_wrap.cxx
31         sed -e 's/SwigValueWrapper< vector<FAMILY \* > >/vector<FAMILY \* >/g' libMedCorba_Swig_wrap.cxx > toto
32         mv toto libMedCorba_Swig_wrap.cxx
33         sed -e 's/SwigValueWrapper< vector<SUPPORT \* > const >/vector<SUPPORT \* >/g' libMedCorba_Swig_wrap.cxx > toto
34         mv toto libMedCorba_Swig_wrap.cxx
35         touch dummy_wrap.cxx
36 else !MED_SWIG_1_3_21
37 SWIG_DEF = libMedCorba_Swig.i
38 endif
39
40 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../MEDMEM_SWIG
41 SWIG_DEP   = ../MEDMEM_SWIG/libMEDMEM_Swig.i
42
43 dist__libMedCorba_Swig_la_SOURCES   = libMedCorba_Swig.i
44 nodist__libMedCorba_Swig_la_SOURCES = libMedCorba_Swig_wrap.cxx
45 salomeinclude_HEADERS = libMedCorba_Swig.i
46
47 libMedCorba_Swig.py: libMedCorba_Swig_wrap.cxx
48
49 libMedCorba_Swig_wrap.cxx: $(SWIG_DEF) $(SWIG_DEP)
50         $(SWIG) $(SWIG_FLAGS) -o $@ $(SWIG_DEF)
51
52 #############################################################################
53
54 _libMedCorba_Swig_la_CPPFLAGS = $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) \
55         $(PYTHON_INCLUDES) $(MED3_INCLUDES) $(HDF5_INCLUDES) ${KERNEL_CXXFLAGS} \
56         -I$(srcdir)/../MEDMEM_I -I$(srcdir)/../MEDMEM -I$(srcdir)/../MEDMEM_SWIG -I$(srcdir)/../MED -I$(srcdir)/../MEDWrapper/V2_1/Core \
57         -I$(srcdir)/../INTERP_KERNEL -I$(srcdir)/../INTERP_KERNEL/Bases -I$(srcdir)/../INTERP_KERNEL/GaussPoints -I$(top_builddir)/idl
58 _libMedCorba_Swig_la_LDFLAGS  = -module $(PYTHON_LIBS) $(MED3_LIBS_C_ONLY) $(HDF5_LIBS)  ${KERNEL_LDFLAGS} -lSALOMELocalTrace \
59         ../MEDMEM_I/libMEDMEMImpl.la ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la ../MED/libMEDEngine.la
60 ###  ../MEDMEM_SWIG/_libMEDMEM_Swig.la
61
62 dist_salomescript_DATA   = medcorba_test.py batchmode_medcorba_test.py batchmode_medcorba_test1.py
63
64 CLEANFILES = libMedCorba_Swig.py libMedCorba_Swig_wrap.cxx