Debian Codegraph @

tutorials/Makefile.am

raw
1 # Copyright (c) 2017 FFLAS-FFPACK
2 # written by JGD <[email protected]>
3 # Philippe LEDENT <[email protected]>
4 #
5 # ========LICENCE========
6 # This file is part of the library FFLAS-FFPACK.
7 #
8 # FFLAS-FFPACK is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2.1 of the License, or (at your option) any later version.
12 #
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 # ========LICENCE========
22 #/
23
24 tutorials: $(TUTORIALS)
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 TUTORIALS = fflas_101 fflas_101_lvl1 fflas-101_1 fflas-101_3 2x2-fgemm 101-fgemm 2x2-pluq 2x2-ftrsv ffpack-solve ffpack-fgesv
35 2x2_fgemm_SOURCES = 2x2-fgemm.C
36 2x2_ftrsv_SOURCES = 2x2-ftrsv.C
37 101_fgemm_SOURCES = 101-fgemm.C
38 2x2_pluq_SOURCES = 2x2-pluq.C
39 fflas_101_SOURCES = fflas_101.C
40 fflas_101_lvl1_SOURCES = fflas_101_lvl1.C
41 fflas_101_1_SOURCES = fflas-101_1.C
42 fflas_101_3_SOURCES = fflas-101_3.C
43 ffpack_solve_SOURCES = ffpack-solve.C
44 ffpack_fgesv_SOURCES = ffpack-fgesv.C
45
46 CLEANFILES = $(TUTORIALS)
47
48 EXTRA_PROGRAMS = $(TUTORIALS)
49
50 define other_compilation
51 $(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) $(OPTFLAGS) ${DEFAULT_INCLUDES} $(PARFLAGS) ${INCLUDES} $(AM_CPPFLAGS) $*.C -o $@ $(LDFLAGS) $(LDADD) $(LOADLIBES)
52 endef
53
54 %:%.C
55 $(other_compilation)
56
57 %:%.cpp
58 $(other_compilation)