Salome HOME
Merge from V6_main (04/10/2012)
[modules/med.git] / src / MEDCoupling / Makefile.am
1 # Copyright (C) 2007-2012  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 # Author : Anthony Geay (CEA/DEN)
20
21 include $(top_srcdir)/adm_local/unix/make_common_starter.am
22
23 EXTRA_DIST += CMakeLists.txt
24
25 if CPPUNIT_IS_OK
26   SUBDIRS = . Test
27 endif
28
29 # first '.' says that this folder must be compiled before Test (MEDMEM/Test uses MEDMEM)
30
31 lib_LTLIBRARIES = libmedcoupling.la libmedcouplingremapper.la
32
33
34 salomeinclude_HEADERS = MEDCoupling.hxx \
35 MEDCouplingFieldDouble.hxx  MEDCouplingMesh.hxx MEDCouplingUMesh.hxx MEDCouplingTimeLabel.hxx     \
36 MEDCouplingField.hxx MEDCouplingNormalizedUnstructuredMesh.hxx MEDCouplingMemArray.hxx            \
37 MEDCouplingNormalizedUnstructuredMesh.txx  MEDCouplingMemArray.txx MEDCouplingRefCountObject.hxx  \
38 MEDCouplingCMesh.hxx MEDCouplingTimeDiscretization.hxx                                            \
39 MEDCouplingFieldDiscretization.hxx MEDCouplingPointSet.hxx                                        \
40 MEDCouplingUMeshDesc.hxx MEDCouplingNatureOfField.hxx MEDCouplingFieldTemplate.hxx                \
41 MEDCouplingNormalizedCartesianMesh.hxx MEDCouplingNormalizedCartesianMesh.txx                     \
42 MEDCouplingRemapper.hxx MEDCouplingExtrudedMesh.hxx MEDCouplingGaussLocalization.hxx              \
43 MEDCouplingAutoRefCountObjectPtr.hxx MEDCouplingMultiFields.hxx MEDCouplingDefinitionTime.hxx     \
44 MEDCouplingFieldOverTime.hxx
45
46 # Libraries targets
47
48 dist_libmedcoupling_la_SOURCES = \
49         MEDCouplingField.cxx  MEDCouplingFieldDouble.cxx                                    \
50         MEDCouplingUMesh.cxx  MEDCouplingMemArray.cxx  MEDCouplingTimeLabel.cxx             \
51         MEDCouplingCMesh.cxx MEDCouplingTimeDiscretization.cxx                              \
52         MEDCouplingFieldDiscretization.cxx MEDCouplingRefCountObject.cxx                    \
53         MEDCouplingPointSet.cxx MEDCouplingUMeshDesc.cxx  MEDCouplingFieldTemplate.cxx      \
54         MEDCouplingExtrudedMesh.cxx MEDCouplingMesh.cxx MEDCouplingGaussLocalization.cxx    \
55         MEDCouplingNatureOfField.cxx MEDCouplingMultiFields.cxx                             \
56         MEDCouplingDefinitionTime.cxx MEDCouplingFieldOverTime.cxx
57
58 libmedcoupling_la_LDFLAGS= 
59
60 libmedcoupling_la_CPPFLAGS=  @CXXTMPDPTHFLAGS@ \
61         -I$(srcdir) -I$(srcdir)/../INTERP_KERNEL/Bases \
62         -I$(srcdir)/../INTERP_KERNEL -I$(srcdir)/../INTERP_KERNEL/Geometric2D \
63         -I$(srcdir)/../INTERP_KERNEL/ExprEval -I$(srcdir)/../INTERP_KERNEL/GaussPoints
64
65 # the geom2D library is included in the interpkernel one
66 libmedcoupling_la_LIBADD= ../INTERP_KERNEL/libinterpkernel.la
67
68 dist_libmedcouplingremapper_la_SOURCES = MEDCouplingRemapper.cxx
69
70 libmedcouplingremapper_la_CPPFLAGS =  @CXXTMPDPTHFLAGS@ \
71         -I$(srcdir) -I$(srcdir)/../INTERP_KERNEL/Bases -I$(srcdir)/../INTERP_KERNEL \
72         -I$(srcdir)/../INTERP_KERNEL/Geometric2D
73
74 libmedcouplingremapper_la_LDFLAGS = 
75
76 libmedcouplingremapper_la_LIBADD = libmedcoupling.la
77
78 AM_CPPFLAGS += $(libinterpkernel_la_CPPFLAGS)
79 LDADD= $(libinterpkernel_la_LDFLAGS)
80
81 EXTRA_DIST += \
82         MEDCouplingFieldDouble.hxx                \
83         MEDCouplingTimeDiscretization.hxx         \
84         MEDCouplingFieldDiscretization.hxx        \
85         MEDCouplingMesh.hxx                       \
86         MEDCouplingUMesh.hxx                      \
87         MEDCouplingCMesh.hxx                      \
88         MEDCouplingTimeLabel.hxx                  \
89         MEDCouplingField.hxx                      \
90         MEDCouplingNormalizedUnstructuredMesh.hxx \
91         MEDCouplingMemArray.hxx                   \
92         MEDCouplingNormalizedUnstructuredMesh.txx \
93         MEDCouplingMemArray.txx                   \
94         MEDCouplingRefCountObject.hxx             \
95         MEDCouplingPointSet.hxx                   \
96         MEDCouplingUMeshDesc.hxx                  \
97         MEDCouplingNatureOfField.hxx              \
98         MEDCouplingRemapper.hxx                   \
99         MEDCouplingExtrudedMesh.hxx               \
100         MEDCouplingGaussLocalization.hxx          \
101         MEDCouplingMultiFields.hxx                \
102         MEDCouplingFieldTemplate.hxx              \
103         MEDCouplingDefinitionTime.hxx             \
104         MEDCouplingFieldOverTime.hxx