Salome HOME
Restore support of med-2.1 in MEDWrapper
[modules/smesh.git] / src / DriverMED / Makefile.am
1 #  Copyright (C) 2007-2010  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 #  SMESH DriverMED : driver to read and write 'med' files
21 #  File   : Makefile.in
22 #  Author : Marc Tajchman (CEA)
23 #  Modified by : Alexander BORODIN (OCN) - autotools usage
24 #  Module : SMESH
25 #  $Header$
26 #
27 include $(top_srcdir)/adm_local/unix/make_common_starter.am
28
29 # header files 
30 salomeinclude_HEADERS = \
31         DriverMED_R_SMDS_Mesh.h \
32         DriverMED_R_SMESHDS_Mesh.h \
33         DriverMED_R_SMESHDS_Document.h \
34         DriverMED_W_SMDS_Mesh.h \
35         DriverMED_W_SMESHDS_Mesh.h \
36         DriverMED_W_SMESHDS_Document.h \
37         DriverMED_Family.h \
38         SMESH_DriverMED.hxx
39
40 # Libraries targets
41 lib_LTLIBRARIES = libMeshDriverMED.la
42 dist_libMeshDriverMED_la_SOURCES = \
43         DriverMED_R_SMDS_Mesh.cxx \
44         DriverMED_R_SMESHDS_Mesh.cxx \
45         DriverMED_R_SMESHDS_Document.cxx \
46         DriverMED_W_SMDS_Mesh.cxx \
47         DriverMED_W_SMESHDS_Document.cxx \
48         DriverMED_W_SMESHDS_Mesh.cxx \
49         DriverMED_Family.cxx
50
51 # Executables targets
52 bin_PROGRAMS = MED_Test
53
54 dist_MED_Test_SOURCES = \
55         MED_Test.cxx
56
57
58 # additionnal information to compil and link file
59 libMeshDriverMED_la_CPPFLAGS = \
60         $(MED_CXXFLAGS) \
61         @HDF5_INCLUDES@ \
62         $(KERNEL_CXXFLAGS) \
63         $(CAS_CPPFLAGS) \
64         $(VTK_INCLUDES) \
65         $(BOOST_CPPFLAGS) \
66         -I$(srcdir)/../Driver \
67         -I$(srcdir)/../SMDS \
68         -I$(srcdir)/../SMESHDS
69
70 libMeshDriverMED_la_LDFLAGS  = \
71         $(BOOST_LIBS) \
72         ../Driver/libMeshDriver.la \
73         $(MED_LDFLAGS) -lMEDWrapper -lMEDWrapperBase -lMEDWrapper_V2_2 -lMEDWrapper_V2_1
74
75
76 MED_Test_CPPFLAGS = \
77         $(libMeshDriverMED_la_CPPFLAGS)
78
79 MED_Test_LDADD = \
80         libMeshDriverMED.la \
81         ../Driver/libMeshDriver.la \
82         ../SMDS/libSMDS.la \
83         ../SMESHDS/libSMESHDS.la \
84         $(KERNEL_LDFLAGS) \
85         -lOpUtil \
86         -lSALOMELocalTrace \
87         -lSALOMEBasics \
88         $(MED_LDFLAGS) \
89         -lMEDWrapper \
90         -lMEDWrapperBase \
91         -lMEDWrapper_V2_2 \
92         -lMEDWrapper_V2_1 
93