File: Makefile.am

package info (click to toggle)
fflas-ffpack 2.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,964 kB
  • sloc: cpp: 25,433; makefile: 807; sh: 423; csh: 95; ansic: 20
file content (185 lines) | stat: -rwxr-xr-x 5,976 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Copyright (c) 2011 FFLAS-FFPACK
# written by Brice Boyer (briceboyer) <boyer.brice@gmail.com>
#
# ========LICENCE========
# This file is part of the library FFLAS-FFPACK.
#
# FFLAS-FFPACK is free software: you can redistribute it and/or modify
# it under the terms of the  GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
# ========LICENCE========
#/

SUBDIRS = data
check:
	$(BASE_TESTS)

AM_CXXFLAGS = ${DEFAULT_CFLAGS}  -I$(top_srcdir) $(PRECOMPILE_FLAGS)

PERFPUBLISHERFILE=tests-report.xml

BASIC_TESTS =               \
		test-fdot           \
		test-finit          \
		test-fscal          \
		test-fadd           \
		test-fger           \
		test-ftrsv          \
		test-ftrtri         \
		test-ftrmv          \
		test-ftrsm          \
		test-ftrstr          \
		test-ftrssyr2k      \
		test-ftrsm-check    \
		test-ftrmm          \
		test-fgemm          \
		test-fgemm-check    \
		test-permutations   \
		test-rpm   \
		test-compressQ      \
		test-lu             \
		test-pluq-check     \
		test-fsyrk          \
		test-fsyr2k          \
		test-fsytrf          \
		test-invert-check   \
		test-rankprofiles   \
		test-det            \
		test-det-check     \
		test-charpoly       \
		test-charpoly-check \
		test-minpoly		\
		test-multifile      \
		test-io      \
		test-maxdelayeddim \
		test-solve \
		test-fgesv             \
		test-simd \
		test-fgemv \
		test-nullspace \
		regression-check

if FFLASFFPACK_PRECOMPILED
LDADD = $(CBLAS_LIBS) $(GIVARO_LIBS) $(CUDA_LIBS) $(PARLIBS) \
	$(top_builddir)/fflas-ffpack/interfaces/libs/libfflas.la \
	$(top_builddir)/fflas-ffpack/interfaces/libs/libffpack.la

INTERFACE_TESTS= test-interfaces-c
test_interfaces_c_CFLAGS = ${DEFAULT_CFLAGS}  -I$(top_srcdir) $(PRECOMPILE_FLAGS)
test_interfaces_c_LDADD = \
	$(top_builddir)/fflas-ffpack/interfaces/libs/libfflas_c.la \
	$(top_builddir)/fflas-ffpack/interfaces/libs/libffpack_c.la \
	-lm -lstdc++
else
LDADD = $(CBLAS_LIBS) $(GIVARO_LIBS) $(CUDA_LIBS) $(PARLIBS)
endif

NOT_A_TEST =  \
		test-krylov-elim       \
		test-fullranksubmatrix \
		test-frobenius         \
		test-invert            \
		test-sparse

INFINITE_TEST= \
		testeur_fgemm          \
		testeur_ftrsm          \
		testeur_lqup


EXTRA_PROGRAMS =       \
		$(BASIC_TESTS)  $(USE_OMP_TESTS) $(INTERFACE_TESTS)

CLEANFILES =           \
		$(NOT_A_TEST) $(EXTRA_PROGRAMS) $(PERFPUBLISHERFILE)

TESTS =     $(EXTRA_PROGRAMS)

test_compressQ_SOURCES         = test-compressQ.C
test_permutations_SOURCES         = test-permutations.C
test_rpm_SOURCES         = test-rpm.C

test_lu_SOURCES              = test-lu.C
test_det_SOURCES               = test-det.C
test_pluq_check_SOURCES = test-pluq-check.C
test_det_check_SOURCES = test-det-check.C
test_fgemm_check_SOURCES = test-fgemm-check.C
test_ftrsm_check_SOURCES = test-ftrsm-check.C
test_invert_check_SOURCES = test-invert-check.C
test_charpoly_check_SOURCES = test-charpoly-check.C
test_minpoly_SOURCES = test-minpoly.C
test_rankprofiles_SOURCES           = test-rankprofiles.C
test_fgemm_SOURCES             = test-fgemm.C
test_fger_SOURCES             = test-fger.C
test_multifile_SOURCES             = test-multifile1.C test-multifile2.C
test_io_SOURCES             = test-io.C
#  test_fgemm_SOURCES             = test-fgemm.C
test_charpoly_SOURCES          = test-charpoly.C
#  test_ftrmm_SOURCES             = test-ftrmm.C
#  testeur_fgemm_SOURCES          = testeur_fgemm.C
test_ftrsm_SOURCES             = test-ftrsm.C
test_ftrstr_SOURCES             = test-ftrstr.C
test_ftrssyr2k_SOURCES             = test-ftrssyr2k.C
test_ftrmm_SOURCES             = test-ftrmm.C
test_ftrsv_SOURCES             = test-ftrsv.C
test_ftrmv_SOURCES             = test-ftrmv.C
test_fsyrk_SOURCES             = test-fsyrk.C
test_fsyr2k_SOURCES             = test-fsyr2k.C
test_fsytrf_SOURCES            = test-fsytrf.C
#  test_redechelon_SOURCES        = test-redechelon.C
#  testeur_ftrsm_SOURCES          = testeur_ftrsm.C
test_ftrtri_SOURCES            = test-ftrtri.C
#  testeur_lqup_SOURCES           = testeur_lqup.C
#  test_fullranksubmatrix_SOURCES = test-fullranksubmatrix.C
#  test_invert_SOURCES            = test-invert.C
#  test_krylov_elim_SOURCES       = test-krylov-elim.C
test_fgesv_SOURCES             = test-fgesv.C
#  test_frobenius_SOURCES         = test-frobenius.C
test_nullspace_SOURCES = test-nullspace.C
test_fdot_SOURCES = test-fdot.C
test_fadd_SOURCES = test-fadd.C
test_fscal_SOURCES = test-fscal.C
test_finit_SOURCES = test-finit.C
#test_sparse_SOURCES = test-sparse.C
test_interfaces_c_SOURCES = test-interfaces-c.c
test_maxdelayeddim_SOURCES = test-maxdelayeddim.C
#  test_fspmv_SOURCES = test-fspmv.C

regression_check_SOURCES = regression-check.C

test_solve_SOURCES = test-solve.C
test_simd_SOURCES = test-simd.C
test_fgemv_SOURCES = test-fgemv.C
#test_pfgemm_DSL_SOURCES = test-pfgemm-DSL.C


dense_generator: dense_generator.C
	$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) dense_generator.C -o dense_generator

# Perfpublisher script interaction - AB 2014/11/17
perfpublisher:
	+./perfpublisher.sh "$(PERFPUBLISHERFILE)" "$(EXTRA_PROGRAMS)" "$(CXX)"
	mv $(PERFPUBLISHERFILE) ..
	make clean
	mv ../$(PERFPUBLISHERFILE) .

# for compilation of new tests
FFLASFFPACK_BIN=@bindir@

new_examp_comp = $(CXX) $(AM_CXXFLAGS) ${CXXFLAGS}  ${INCLUDES} $(AM_CPPFLAGS) $^ -o $@ $(LDFLAGS) $(LDADD) $(LOADLIBES) $(LIBS)

%:%.C
	$(new_examp_comp)

%:%.cpp
	$(new_examp_comp)