]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/RENUMBER/Makefile.am
Salome HOME
CMake: Use FindSalomeVTK.cmake
[tools/medcoupling.git] / src / RENUMBER / 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 #  MED MEDMEM : MED files in memory
20
21 include $(top_srcdir)/adm_local/unix/make_common_starter.am
22
23 # this directory must be recompiled before Test folder
24
25 if CPPUNIT_IS_OK
26 # SUBDIRS=. Test
27 endif
28
29 lib_LTLIBRARIES= librenumber.la
30
31 salomeinclude_HEADERS= \
32 RENUMBER_Renumbering.hxx \
33 RenumberingFactory.hxx \
34 RENUMBERDefines.hxx
35
36 if MED_ENABLE_METIS
37     salomeinclude_HEADERS+= RENUMBER_METISRenumbering.hxx
38 endif
39 if BOOST_IS_OK
40     salomeinclude_HEADERS+= RENUMBER_BOOSTRenumbering.hxx
41 endif
42
43 dist_librenumber_la_SOURCES= \
44 RENUMBER_Renumbering.cxx \
45 RenumberingFactory.cxx
46
47 if MED_ENABLE_METIS
48     dist_librenumber_la_SOURCES+= RENUMBER_METISRenumbering.cxx
49 endif
50 if BOOST_IS_OK
51     dist_librenumber_la_SOURCES+= RENUMBER_BOOSTRenumbering.cxx 
52 endif
53
54 librenumber_la_CPPFLAGS= $(MED3_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
55         $(BOOST_CPPFLAGS) \
56         -I$(srcdir)/../MEDMEM -I$(srcdir)/../INTERP_KERNEL/Bases \
57         -I$(srcdir)/../INTERP_KERNEL/GaussPoints \
58         -I$(srcdir)/../INTERP_KERNEL
59
60 librenumber_la_LDFLAGS= 
61 #libmedsplitter_la_LDFLAGS= $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(STDLIB) \
62 #       ../MEDMEM/libmedmem.la
63
64 if MED_ENABLE_METIS
65   librenumber_la_CPPFLAGS+= $(METIS_CPPFLAGS)
66   librenumber_la_LDFLAGS+= $(METIS_LIBS)
67 endif 
68 if BOOST_IS_OK
69   librenumber_la_CPPFLAGS+= $(BOOST_CPPFLAGS) -DENABLE_BOOST
70   librenumber_la_LDFLAGS+= $(BOOST_LIBS)
71 endif
72 if MED_ENABLE_KERNEL
73   librenumber_la_CPPFLAGS+= ${KERNEL_CXXFLAGS}
74   librenumber_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace 
75 endif
76
77 librenumber_la_LDFLAGS+= $(MED3_LIBS_C_ONLY) $(HDF5_LIBS) $(STDLIB) \
78         ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la
79
80 # Executables targets
81 bin_PROGRAMS= renumber
82
83 dist_renumber_SOURCES= renumbering.cxx
84
85 renumber_CPPFLAGS= $(librenumber_la_CPPFLAGS)
86 renumber_LDADD= $(librenumber_la_LDFLAGS) -lm $(BOOST_LIBS) librenumber.la
87 if MED_ENABLE_KERNEL
88   renumber_LDADD+= -lSALOMEBasics
89 endif
90
91 OBSOLETE_FILES = 
92 #       MEDSPLITTER_SequentialTopology.cxx \
93 #       test_HighLevelAPI.cxx
94
95 EXTRA_DIST += $(OBSOLETE_FILES) testRenumbering.py
96