1 # Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # MED MedCorba_Swig : binding of MED CORBA objects woth Python
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24 salomepython_PYTHON = libMedCorba_Swig.py
25 salomepyexec_LTLIBRARIES = _libMedCorba_Swig.la
28 SWIG_DEF = libMedCorba_Swig.i dummy.i
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
37 SWIG_DEF = libMedCorba_Swig.i
40 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../MEDMEM_SWIG
41 SWIG_DEP = ../MEDMEM_SWIG/libMEDMEM_Swig.i
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
47 libMedCorba_Swig.py: libMedCorba_Swig_wrap.cxx
49 libMedCorba_Swig_wrap.cxx: $(SWIG_DEF) $(SWIG_DEP)
50 $(SWIG) $(SWIG_FLAGS) -o $@ $(SWIG_DEF)
52 #############################################################################
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
62 dist_salomescript_DATA = medcorba_test.py batchmode_medcorba_test.py batchmode_medcorba_test1.py
64 CLEANFILES = libMedCorba_Swig.py libMedCorba_Swig_wrap.cxx