Salome HOME
MEDMEM suppression
[modules/med.git] / src / MedClient / test / test2 / 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 MedClient : tool to transfer MED CORBA from server producer of MED object to a client using those MED object
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 if MED_SWIG_1_3_21
25 SWIG_DEF = libCompo2.i dummy.i
26
27 dummy_wrap.cxx: libCompo2_wrap.cxx
28         sed -e 's/SwigValueWrapper< vector<FAMILY \* > >/vector<FAMILY \* >/g' libCompo2_wrap.cxx > toto
29         mv toto libCompo2_wrap.cxx
30         sed -e 's/SwigValueWrapper< vector<SUPPORT \* > const >/vector<SUPPORT \* >/g' libCompo2_wrap.cxx > toto
31         mv toto libCompo2_wrap.cxx
32         touch dummy_wrap.cxx
33 else !MED_SWIG_1_3_21
34 SWIG_DEF = libCompo2.i
35 endif
36
37 dist_salomescript_DATA = \
38         TestMedCorba6.py \
39         TestMedCorba7.py \
40         TestMedCorba8.py
41 nodist_salomescript_DATA = \
42         libCompo2.py
43
44 # Libraries targets
45 lib_LTLIBRARIES = _libCompo2.la
46
47 dist__libCompo2_la_SOURCES   = Compo2.hxx Compo2.cxx libCompo2.i
48 nodist__libCompo2_la_SOURCES = libCompo2_wrap.cxx
49
50 _libCompo2_la_CPPFLAGS = $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) \
51         ${MED3_INCLUDES} ${HDF5_INCLUDES} ${PYTHON_INCLUDES} ${KERNEL_CXXFLAGS} \
52         -I$(srcdir)/../../../MEDMEM_I -I$(srcdir)/../../../MEDMEM -I$(top_builddir)/idl \
53         -I$(srcdir)/../../../MEDWrapper/V2_1/Core -I$(srcdir)/../../../MEDMEM_SWIG -I$(srcdir)/../../../MED -I$(srcdir)/../../src \
54         -I$(srcdir)/../../../INTERP_KERNEL -I$(srcdir)/../../../INTERP_KERNEL/Bases \
55         -I$(srcdir)/../../../INTERP_KERNEL/GaussPoints
56 _libCompo2_la_LDFLAGS  = ${PYTHON_LIBS} -module ${KERNEL_LDFLAGS}  ${MED3_LIBS_C_ONLY} ${HDF5_LIBS} \
57         ../../../MEDMEM/libmedmem.la ../../../MEDMEM_I/libMEDMEMImpl.la ../../../INTERP_KERNEL/libinterpkernel.la \
58         ../../../MED/libMEDEngine.la ../../src/libMEDClientcmodule.la
59
60 SWIG_FLAGS = @SWIG_FLAGS@ -I$(srcdir) -I$(srcdir)/../../src -I$(srcdir)/../../../MEDMEM_SWIG -I$(srcdir)/../../../MedCorba_Swig
61 SWIG_DEP   = ../../src/libMEDClient.i ../../../MEDMEM_SWIG/libMEDMEM_Swig.i ../../../MedCorba_Swig/libMedCorba_Swig.i
62
63 libCompo2.py: libCompo2_wrap.cxx
64
65 libCompo2_wrap.cxx: $(SWIG_DEF)
66         $(SWIG) $(SWIG_FLAGS) -o $@ $<
67
68 CLEANFILES = libCompo2_wrap.cxx libCompo2.py