Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/med.git] / src / MEDSPLITTER / Makefile.am
1 #  MED MEDMEM : MED files in memory
2 #
3 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5
6 #  This library is free software; you can redistribute it and/or 
7 #  modify it under the terms of the GNU Lesser General Public 
8 #  License as published by the Free Software Foundation; either 
9 #  version 2.1 of the License. 
10
11 #  This library is distributed in the hope that it will be useful, 
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 #  Lesser General Public License for more details. 
15
16 #  You should have received a copy of the GNU Lesser General Public 
17 #  License along with this library; if not, write to the Free Software 
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 include $(top_srcdir)/adm_local/unix/make_common_starter.am
24
25 # this directory must be recompiled before Test folder
26
27 if CPPUNIT_IS_OK
28  SUBDIRS=. Test
29 endif
30
31 lib_LTLIBRARIES= libmedsplitter.la
32
33 salomeinclude_HEADERS= \
34 MEDSPLITTER_Topology.hxx \
35 MEDSPLITTER_MESHCollection.hxx \
36 MEDSPLITTER_MESHCollectionDriver.hxx \
37 MEDSPLITTER_MESHCollectionMedXMLDriver.hxx \
38 MEDSPLITTER_MESHCollectionMedAsciiDriver.hxx \
39 MEDSPLITTER_ParallelTopology.hxx \
40 MEDSPLITTER_FaceModel.hxx \
41 MEDSPLITTER_Graph.hxx\
42 MEDSPLITTER_UserGraph.hxx\
43 MEDSPLITTER_API.hxx \
44 MEDSPLITTER.hxx
45
46 if MED_ENABLE_METIS
47     salomeinclude_HEADERS+= MEDSPLITTER_METISGraph.hxx
48 endif
49 if MED_ENABLE_SCOTCH
50     salomeinclude_HEADERS+= MEDSPLITTER_SCOTCHGraph.hxx
51 endif
52
53 dist_libmedsplitter_la_SOURCES= \
54 MEDSPLITTER_MESHCollection.cxx \
55 MEDSPLITTER_MESHCollectionDriver.cxx \
56 MEDSPLITTER_MESHCollectionMedXMLDriver.cxx \
57 MEDSPLITTER_MESHCollectionMedAsciiDriver.cxx \
58 MEDSPLITTER_ParallelTopology.cxx \
59 MEDSPLITTER_Graph.cxx\
60 MEDSPLITTER_UserGraph.cxx\
61 MEDSPLITTER_API.cxx
62
63 if MED_ENABLE_METIS
64     dist_libmedsplitter_la_SOURCES+= MEDSPLITTER_METISGraph.cxx
65 endif
66 if MED_ENABLE_SCOTCH
67     dist_libmedsplitter_la_SOURCES+= MEDSPLITTER_SCOTCHGraph.cxx
68 endif
69
70 libmedsplitter_la_CPPFLAGS= $(MED2_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
71         $(BOOST_CPPFLAGS) $(LIBXML_CPPFLAGS) \
72         -I$(srcdir)/../MEDMEM -I$(srcdir)/../MEDWrapper/V2_1/Core
73 libmedsplitter_la_LDFLAGS= $(MED2_LIBS) $(HDF5_LIBS) $(STDLIB) $(LIBXML_LIBS) \
74         ../MEDMEM/libmedmem.la ../MEDWrapper/V2_1/Core/libmed_V2_1.la
75
76 if MED_ENABLE_KERNEL
77   libmedsplitter_la_CPPFLAGS+= ${KERNEL_CXXFLAGS}
78   libmedsplitter_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace 
79 endif
80 if MED_ENABLE_METIS
81   libmedsplitter_la_CPPFLAGS+= $(METIS_CPPFLAGS)
82   libmedsplitter_la_LDFLAGS+= $(METIS_LIBS)
83 endif
84 if MED_ENABLE_SCOTCH
85   libmedsplitter_la_CPPFLAGS+= $(SCOTCH_CPPFLAGS)
86   libmedsplitter_la_LDFLAGS+= $(SCOTCH_LIBS)
87 endif
88
89 # Executables targets
90 bin_PROGRAMS= medsplitter
91
92 dist_medsplitter_SOURCES= medsplitter.cxx
93
94 medsplitter_CPPFLAGS= $(libmedsplitter_la_CPPFLAGS)
95 medsplitter_LDADD= $(libmedsplitter_la_LDFLAGS) -lm $(BOOST_LIBS) libmedsplitter.la
96 if MED_ENABLE_KERNEL
97   medsplitter_LDADD+= -lSALOMEBasics
98 endif