Salome HOME
Merge from V6_main_20120808 08Aug12
[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
20 include $(top_srcdir)/adm_local/unix/make_common_starter.am
21
22 EXTRA_DIST += CMakeLists.txt
23
24 if CPPUNIT_IS_OK
25   SUBDIRS = . Test
26 endif
27
28 # first '.' says that this folder must be compiled before Test (MEDMEM/Test uses MEDMEM)
29
30 lib_LTLIBRARIES = libmedcoupling.la libmedcouplingremapper.la
31
32
33 salomeinclude_HEADERS = MEDCoupling.hxx \
34 MEDCouplingFieldDouble.hxx  MEDCouplingMesh.hxx MEDCouplingUMesh.hxx MEDCouplingTimeLabel.hxx     \
35 MEDCouplingField.hxx MEDCouplingNormalizedUnstructuredMesh.hxx MEDCouplingMemArray.hxx            \
36 MEDCouplingNormalizedUnstructuredMesh.txx  MEDCouplingMemArray.txx MEDCouplingRefCountObject.hxx  \
37 MEDCouplingCMesh.hxx MEDCouplingTimeDiscretization.hxx                                            \
38 MEDCouplingFieldDiscretization.hxx MEDCouplingPointSet.hxx                                        \
39 MEDCouplingUMeshDesc.hxx MEDCouplingNatureOfField.hxx MEDCouplingFieldTemplate.hxx                \
40 MEDCouplingNormalizedCartesianMesh.hxx MEDCouplingNormalizedCartesianMesh.txx                     \
41 MEDCouplingRemapper.hxx MEDCouplingExtrudedMesh.hxx MEDCouplingGaussLocalization.hxx              \
42 MEDCouplingAutoRefCountObjectPtr.hxx MEDCouplingMultiFields.hxx MEDCouplingDefinitionTime.hxx     \
43 MEDCouplingFieldOverTime.hxx
44
45 # Libraries targets
46
47 dist_libmedcoupling_la_SOURCES = \
48         MEDCouplingField.cxx  MEDCouplingFieldDouble.cxx                                    \
49         MEDCouplingUMesh.cxx  MEDCouplingMemArray.cxx  MEDCouplingTimeLabel.cxx             \
50         MEDCouplingCMesh.cxx MEDCouplingTimeDiscretization.cxx                              \
51         MEDCouplingFieldDiscretization.cxx MEDCouplingRefCountObject.cxx                    \
52         MEDCouplingPointSet.cxx MEDCouplingUMeshDesc.cxx  MEDCouplingFieldTemplate.cxx      \
53         MEDCouplingExtrudedMesh.cxx MEDCouplingMesh.cxx MEDCouplingGaussLocalization.cxx    \
54         MEDCouplingNatureOfField.cxx MEDCouplingMultiFields.cxx                             \
55         MEDCouplingDefinitionTime.cxx MEDCouplingFieldOverTime.cxx
56
57 libmedcoupling_la_LDFLAGS= 
58
59 libmedcoupling_la_CPPFLAGS=  @CXXTMPDPTHFLAGS@ \
60         -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