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