Debian Codegraph @

examples/Makefile.am

raw
1 # Copyright (c) 2014 FFLAS-FFPACK
2 # written by JGD <[email protected]>
3 #
4 # ========LICENCE========
5 # This file is part of the library FFLAS-FFPACK.
6 #
7 # FFLAS-FFPACK is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 # ========LICENCE========
21 #/
22
23 SUBDIRS =
24 examples: $(EXAMPLES)
25
26 AM_CXXFLAGS = $(FFLASFFPACK_CXXFLAGS) $(GIVARO_CFLAGS) $(BLAS_CFLAGS) $(PARFLAGS) $(PRECOMPILE_FLAGS)
27 AM_CPPFLAGS = -I$(top_srcdir)
28 LDADD = $(GIVARO_LIBS) $(BLAS_LIBS) $(PARLIBS)
29 if FFLASFFPACK_PRECOMPILED
30 LDADD += $(top_builddir)/fflas-ffpack/interfaces/libs/libfflas.la
31 LDADD += $(top_builddir)/fflas-ffpack/interfaces/libs/libffpack.la
32 endif
33
34 EXAMPLES = \
35 det \
36 pluq \
37 rank \
38 charpoly\
39 matmul \
40 solve
41
42 det_SOURCES = det.C
43 pluq_SOURCES = pluq.C
44 rank_SOURCES = rank.C
45 charpoly_SOURCES = charpoly.C
46 matmul_SOURCES = matmul.C
47 solve_SOURCES = solve.C
48
49 CLEANFILES = $(EXAMPLES)
50
51 EXTRA_PROGRAMS = $(EXAMPLES)
52
53 define other_compilation
54 $(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) ${INCLUDES} $(AM_CPPFLAGS) $*.C -o $@ $(LDFLAGS) $(LDADD) $(LOADLIBES)
55 endef
56
57 %:%.C
58 $(other_compilation)
59
60 %:%.cpp
61 $(other_compilation)