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