Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / src / MEDCoupling / Makefile.am
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
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 include $(top_srcdir)/adm_local/unix/make_common_starter.am
20
21 if CPPUNIT_IS_OK
22   SUBDIRS = . Test
23 endif
24
25 # first '.' says that this folder must be compiled before Test (MEDMEM/Test uses MEDMEM)
26
27 lib_LTLIBRARIES = libmedcoupling.la
28
29
30 salomeinclude_HEADERS = \
31 MEDCouplingFieldDouble.hxx  MEDCouplingMesh.hxx MEDCouplingUMesh.hxx TimeLabel.hxx \
32 MEDCouplingField.hxx MEDCouplingNormalizedUnstructuredMesh.hxx MemArray.hxx        \
33 MEDCouplingNormalizedUnstructuredMesh.txx  MemArray.txx RefCountObject.hxx         \
34 MEDCouplingSMesh.hxx
35
36 # Libraries targets
37
38 dist_libmedcoupling_la_SOURCES = \
39         MEDCouplingField.cxx  MEDCouplingFieldDouble.cxx  \
40         MEDCouplingUMesh.cxx  MemArray.cxx  TimeLabel.cxx \
41         MEDCouplingSMesh.cxx
42
43 libmedcoupling_la_LDFLAGS= 
44
45 libmedcoupling_la_CPPFLAGS=  @CXXTMPDPTHFLAGS@ \
46         -I$(srcdir) -I$(srcdir)/../INTERP_KERNEL/Bases -I$(srcdir)/../INTERP_KERNEL
47
48 # the geom2D library is included in the interpkernel one
49 libmedcoupling_la_LIBADD= ../INTERP_KERNEL/libinterpkernel.la
50
51 AM_CPPFLAGS= $(libinterpkernel_la_CPPFLAGS)
52 LDADD= $(libinterpkernel_la_LDFLAGS)
53 if MED_ENABLE_KERNEL
54      LDADD+=-lSALOMEBasics
55 endif
56
57 EXTRA_DIST += \
58         MEDCouplingFieldDouble.hxx                \
59         MEDCouplingMesh.hxx                       \
60         MEDCouplingUMesh.hxx                      \
61         MEDCouplingSMesh.hxx                      \
62         TimeLabel.hxx                             \
63         MEDCouplingField.hxx                      \
64         MEDCouplingNormalizedUnstructuredMesh.hxx \
65         MemArray.hxx                              \
66         MEDCouplingNormalizedUnstructuredMesh.txx \
67         MemArray.txx                              \
68         RefCountObject.hxx