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