Makefile.am 26.9 KB
Newer Older
1
## Process this file with automake to produce Makefile.in
2

3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
4

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
5
AM_FCFLAGS = $(SCALAPACK_FCFLAGS) $(FC_MODINC)modules
6
AM_LDFLAGS = $(SCALAPACK_LDFLAGS)
7

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
8 9
FCLD = @ACTUAL_FC@

10
# libelpa
11 12 13 14
lib_LTLIBRARIES = libelpa@SUFFIX@.la
libelpa@SUFFIX@_la_LINK = $(FCLINK) $(AM_LDFLAGS) -version-info $(ELPA_SO_VERSION)
libelpa@SUFFIX@_la_LIBADD = libelpa@SUFFIX@_public.la libelpa@SUFFIX@_private.la
libelpa@SUFFIX@_la_SOURCES =
15

16 17
# parts with public interface
noinst_LTLIBRARIES = libelpa@SUFFIX@_public.la
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
18
libelpa@SUFFIX@_public_la_FCFLAGS = $(AM_FCFLAGS) $(FC_MODOUT)modules $(FC_MODINC)private_modules
19
libelpa@SUFFIX@_public_la_SOURCES = \
20 21
  src/elpa.F90 \
  src/elpa_api.F90 \
22
  src/elpa_constants.F90
23

24 25
# internal parts
noinst_LTLIBRARIES += libelpa@SUFFIX@_private.la
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
26
libelpa@SUFFIX@_private_la_FCFLAGS = $(AM_FCFLAGS) $(FC_MODOUT)private_modules $(FC_MODINC)private_modules
27
libelpa@SUFFIX@_private_la_SOURCES = \
28
  src/elpa_impl.F90 \
29
  src/elpa_autotune_impl.F90 \
30
  src/elpa_abstract_impl.F90 \
31
  src/helpers/mod_precision.F90 \
32
  src/helpers/mod_blas_interfaces.F90 \
33
  src/helpers/mod_scalapack_interfaces.F90 \
34 35
  src/helpers/mod_mpi.F90 \
  src/helpers/mod_mpi_stubs.F90 \
36
  src/helpers/mod_omp.F90 \
37 38 39 40 41 42
  src/elpa_generated_fortran_interfaces.F90 \
  src/elpa2/mod_redist_band.F90 \
  src/elpa2/mod_pack_unpack_cpu.F90 \
  src/elpa2/mod_compute_hh_trafo.F90 \
  src/helpers/aligned_mem.F90 \
  src/elpa1/elpa1_compute_private.F90 \
43
  src/elpa1/elpa1_auxiliary.F90 \
44 45 46 47 48 49 50 51 52 53 54 55 56
  src/elpa2/elpa2_determine_workload.F90 \
  src/elpa2/elpa2_compute.F90 \
  src/elpa2/kernels/mod_single_hh_trafo_real.F90 \
  src/GPU/check_for_gpu.F90 \
  src/GPU/mod_cuda.F90 \
  src/elpa2/GPU/interface_c_kernel.F90 \
  src/elpa2/mod_pack_unpack_gpu.F90 \
  src/elpa2/qr/qr_utils.F90 \
  src/elpa2/qr/elpa_qrkernels.F90 \
  src/elpa2/qr/elpa_pdlarfb.F90 \
  src/elpa2/qr/elpa_pdgeqrf.F90 \
  src/elpa1/elpa1.F90 \
  src/elpa2/elpa2.F90 \
57
  src/elpa_generalized/cannon.c \
58
  src/helpers/matrix_plot.F90 \
Andreas Marek's avatar
Andreas Marek committed
59
  src/general/mod_elpa_skewsymmetric_blas.F90 \
60 61
  src/elpa_index.c

62
libelpa@SUFFIX@_private_la_SOURCES += src/elpa_c_interface.c
Andreas Marek's avatar
Andreas Marek committed
63 64


65 66
libelpa@SUFFIX@_private_la_SOURCES += \
  src/general/elpa_utilities.F90
67

68
EXTRA_libelpa@SUFFIX@_private_la_DEPENDENCIES = \
69 70
  src/elpa1/elpa_reduce_add_vectors.F90 \
  src/elpa1/elpa_transpose_vectors.F90 \
Andreas Marek's avatar
Andreas Marek committed
71
  src/elpa_api_math_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
72 73
  src/elpa_impl_math_template.F90 \
  src/elpa_impl_generalized_transform_template.F90 \
74 75 76
  src/elpa1/elpa1_compute_template.F90 \
  src/elpa2/elpa2_compute_real_template.F90 \
  src/elpa2/elpa2_compute_complex_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
77
  src/helpers/elpa_redistribute_template.F90 \
78 79 80 81 82 83 84 85 86 87 88 89 90 91
  src/elpa1/elpa1_template.F90 \
  src/elpa2/elpa2_template.F90 \
  src/elpa2/qr/qr_utils_template.F90 \
  src/elpa2/qr/elpa_pdlarfb_template.F90 \
  src/elpa2/qr/elpa_pdgeqrf_template.F90 \
  src/elpa2/elpa2_bandred_template.F90 \
  src/elpa2/elpa2_symm_matrix_allreduce_real_template.F90 \
  src/elpa2/elpa2_trans_ev_band_to_full_template.F90 \
  src/elpa2/elpa2_tridiag_band_template.F90 \
  src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90 \
  src/elpa2/elpa2_herm_matrix_allreduce_complex_template.F90 \
  src/elpa2/kernels/real_template.F90 \
  src/elpa2/kernels/complex_template.F90 \
  src/elpa2/kernels/simple_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
92
  src/elpa2/kernels/simple_block4_template.F90 \
93
  src/elpa2/kernels/simple_block6_template.F90 \
94 95 96 97 98
  src/elpa2/pack_unpack_cpu.F90 \
  src/elpa2/pack_unpack_gpu.F90 \
  src/elpa2/compute_hh_trafo.F90 \
  src/elpa2/redist_band.F90 \
  src/general/sanity.F90 \
99
  src/general/error_checking.inc \
100 101 102 103
  src/elpa1/elpa_cholesky_template.F90 \
  src/elpa1/elpa_invert_trm.F90 \
  src/elpa1/elpa_multiply_a_b.F90 \
  src/elpa1/elpa_solve_tridi_impl_public.F90 \
Andreas Marek's avatar
Andreas Marek committed
104 105
  src/general/elpa_ssr2_template.F90 \
  src/general/elpa_ssmv_template.F90 \
106
  src/general/precision_macros.h \
107
  src/general/precision_typedefs.h \
108
  src/general/precision_kinds.F90
109

110
if HAVE_DETAILED_TIMINGS
111 112 113 114 115 116 117 118 119
libelpa@SUFFIX@_private_la_SOURCES += \
  src/ftimings/ftimings.F90 \
  src/ftimings/ftimings_type.F90 \
  src/ftimings/ftimings_value.F90 \
  src/ftimings/highwater_mark.c \
  src/ftimings/resident_set_size.c \
  src/ftimings/time.c \
  src/ftimings/virtual_memory.c \
  src/ftimings/papi.c
120

121
else
122 123
libelpa@SUFFIX@_private_la_SOURCES += \
  src/helpers/timer_dummy.F90
124 125
endif

126
if WITH_GPU_VERSION
127
  libelpa@SUFFIX@_private_la_SOURCES += src/GPU/cudaFunctions.cu src/GPU/cuUtils.cu src/elpa2/GPU/ev_tridi_band_gpu_real.cu src/elpa2/GPU/ev_tridi_band_gpu_complex.cu
128 129
endif

130
if !WITH_MPI
131
  libelpa@SUFFIX@_private_la_SOURCES += src/helpers/mod_time_c.F90
132
if !HAVE_DETAILED_TIMINGS
133
  libelpa@SUFFIX@_private_la_SOURCES += src/ftimings/time.c
134 135 136
endif
endif

Andreas Marek's avatar
Andreas Marek committed
137 138 139 140 141

if HAVE_HETEROGENOUS_CLUSTER_SUPPORT
  libelpa@SUFFIX@_private_la_SOURCES +=  src/helpers/get_cpuid_set.c src/helpers/mod_simd_kernel.F90
endif

Andreas Marek's avatar
Andreas Marek committed
142
if WITH_REAL_GENERIC_KERNEL
Andreas Marek's avatar
Andreas Marek committed
143
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2/kernels/real.F90
144 145
endif

Andreas Marek's avatar
Andreas Marek committed
146
if WITH_COMPLEX_GENERIC_KERNEL
Andreas Marek's avatar
Andreas Marek committed
147
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2/kernels/complex.F90
148 149
endif

Andreas Marek's avatar
Andreas Marek committed
150
if WITH_REAL_GENERIC_SIMPLE_KERNEL
Andreas Marek's avatar
Andreas Marek committed
151
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_simple.F90
152 153
endif

Andreas Marek's avatar
Andreas Marek committed
154
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
Andreas Marek's avatar
Andreas Marek committed
155
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_simple.F90
156 157
endif

Andreas Marek's avatar
Andreas Marek committed
158 159 160 161
if WITH_REAL_GENERIC_SIMPLE_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_simple_block4.F90
endif

162 163 164 165
if WITH_REAL_GENERIC_SIMPLE_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_simple_block6.F90
endif

Andreas Marek's avatar
Andreas Marek committed
166
if WITH_REAL_BGP_KERNEL
Andreas Marek's avatar
Andreas Marek committed
167
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_bgp.f90
168 169
endif

Andreas Marek's avatar
Andreas Marek committed
170
if WITH_REAL_BGQ_KERNEL
Andreas Marek's avatar
Andreas Marek committed
171
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_bgq.f90
172 173
endif

174
if WITH_REAL_SSE_ASSEMBLY_KERNEL
Andreas Marek's avatar
Andreas Marek committed
175
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_double_precision.s
176
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
177
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_single_precision.s
178
endif
179

Andreas Marek's avatar
Andreas Marek committed
180
else
181
if WITH_COMPLEX_SSE_ASSEMBLY_KERNEL
Andreas Marek's avatar
Andreas Marek committed
182
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_double_precision.s
183
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
184
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_single_precision.s
185
endif
186 187
endif
endif
Andreas Marek's avatar
Andreas Marek committed
188

189 190
if WITH_REAL_SPARC64_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_2hv_double_precision.c
Andreas Marek's avatar
Andreas Marek committed
191 192 193
#if WANT_SINGLE_PRECISION_REAL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_2hv_single_precision.c
#endif
194 195
endif

196 197 198 199 200 201 202
if WITH_REAL_NEON_ARCH64_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_2hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_2hv_single_precision.c
endif
endif

203 204
if WITH_REAL_VSX_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_2hv_double_precision.c
205 206 207
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_2hv_single_precision.c
endif
208 209
endif

210
if WITH_REAL_SSE_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
211
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_2hv_double_precision.c
212
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
213
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_2hv_single_precision.c
214
endif
215 216
endif

Andreas Marek's avatar
Andreas Marek committed
217
if WITH_REAL_AVX_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
218
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_2hv_double_precision.c
219
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
220
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_2hv_single_precision.c
221
endif
Andreas Marek's avatar
Andreas Marek committed
222 223
endif

224
if WITH_REAL_AVX2_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
225
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_2hv_double_precision.c
226
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
227
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_2hv_single_precision.c
228
endif
229 230
endif

231
if WITH_REAL_AVX512_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
232
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_2hv_double_precision.c
233
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
234
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_2hv_single_precision.c
235
endif
236 237
endif

238 239
if WITH_REAL_SPARC64_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_4hv_double_precision.c
240 241 242
#if WANT_SINGLE_PRECISION_REAL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_4hv_single_precision.c
#endif
243
endif
244

245 246 247 248 249 250 251
if WITH_REAL_NEON_ARCH64_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_4hv_single_precision.c
endif
endif

252 253 254 255 256 257
if WITH_REAL_VSX_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_4hv_single_precision.c
endif
endif
258

259
if WITH_REAL_SSE_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
260
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_4hv_double_precision.c
261
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
262
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_4hv_single_precision.c
263
endif
264 265
endif

Andreas Marek's avatar
Andreas Marek committed
266
if WITH_REAL_AVX_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
267
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_4hv_double_precision.c
268
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
269
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_4hv_single_precision.c
270
endif
Andreas Marek's avatar
Andreas Marek committed
271 272
endif

273
if WITH_REAL_AVX2_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
274
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_4hv_double_precision.c
275
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
276
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_4hv_single_precision.c
277
endif
278 279
endif

280
if WITH_REAL_AVX512_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
281
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_4hv_double_precision.c
282
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
283
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_4hv_single_precision.c
284
endif
285 286
endif

287 288
if WITH_REAL_SPARC64_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_6hv_double_precision.c
289 290 291
#if WANT_SINGLE_PRECISION_REAL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_6hv_single_precision.c
#endif
292
endif
293

294 295 296 297 298 299 300
if WITH_REAL_NEON_ARCH64_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_6hv_single_precision.c
endif
endif

301 302 303 304 305 306
if WITH_REAL_VSX_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_6hv_single_precision.c
endif
endif
307

308
if WITH_REAL_SSE_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
309
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_6hv_double_precision.c
310
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
311
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_6hv_single_precision.c
312
endif
313 314
endif

Andreas Marek's avatar
Andreas Marek committed
315
if WITH_REAL_AVX_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
316
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_6hv_double_precision.c
317
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
318
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_6hv_single_precision.c
319
endif
Andreas Marek's avatar
Andreas Marek committed
320 321
endif

322
if WITH_REAL_AVX2_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
323
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_6hv_double_precision.c
324
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
325
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_6hv_single_precision.c
326
endif
327 328
endif

329
if WITH_REAL_AVX512_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
330
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_6hv_double_precision.c
331
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
332
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_6hv_single_precision.c
333
endif
334 335
endif

336 337 338 339 340 341 342 343 344 345 346 347 348
#if WITH_COMPLEX_SPARC64_BLOCK1_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_1hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_1hv_single_precision.c
#endif
#endif
#
#if WITH_COMPLEX_VSX_BLOCK1_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_1hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_1hv_single_precision.c
#endif
#endif
349

350
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
351
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_1hv_double_precision.c
352
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
353
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_1hv_single_precision.c
354
endif
355 356
endif

Andreas Marek's avatar
Andreas Marek committed
357
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
358
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_1hv_double_precision.c
359
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
360
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_1hv_single_precision.c
361
endif
Andreas Marek's avatar
Andreas Marek committed
362 363
endif

364
if WITH_COMPLEX_AVX2_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
365
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_1hv_double_precision.c
366
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
367
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_1hv_single_precision.c
368
endif
369 370
endif

371 372

if WITH_COMPLEX_AVX512_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
373
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_1hv_double_precision.c
374
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
375
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_1hv_single_precision.c
376
endif
377 378
endif

379 380 381 382 383 384 385 386 387 388 389 390 391
#if WITH_COMPLEX_SPARC64_BLOCK2_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_2hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_2hv_single_precision.c
#endif
#endif
#
#if WITH_COMPLEX_VSX_BLOCK2_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_2hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_2hv_single_precision.c
#endif
#endif
392

393
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
394
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_2hv_double_precision.c
395
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
396
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_2hv_single_precision.c
397
endif
398 399
endif

Andreas Marek's avatar
Andreas Marek committed
400
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
401
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_2hv_double_precision.c
402
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
403
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_2hv_single_precision.c
404
endif
Andreas Marek's avatar
Andreas Marek committed
405 406
endif

407
if WITH_COMPLEX_AVX2_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
408
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_2hv_double_precision.c
409
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
410
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_2hv_single_precision.c
411
endif
412 413
endif

414
if WITH_COMPLEX_AVX512_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
415
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_2hv_double_precision.c
416
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
417
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_2hv_single_precision.c
418
endif
419 420
endif

421 422 423 424 425 426

if STORE_BUILD_CONFIG
  libelpa@SUFFIX@_private_la_SOURCES += src/helpers/print_build_config.c
endif


427
# Cuda files
428
.cu.lo:
429
	NVCC="$(NVCC)" libtool --mode=compile --tag=CC $(top_srcdir)/nvcc_wrap $(NVCCFLAGS) $(LDFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/  -c $< -o $@
Andreas Marek's avatar
Andreas Marek committed
430

431 432 433 434 435
# Assembly files
LTCCASCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
	$(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) \
	$(CCASFLAGS)

436 437 438
include generated_headers.am
BUILT_SOURCES = $(generated_headers)

439
# install public headers and Fortran modules files in the include/ dir
440
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
441 442
nobase_elpa_include_HEADERS = \
  $(wildcard modules/*) \
443 444
  src/helpers/lapack_interfaces.h \
  src/helpers/scalapack_interfaces.h \
Andreas Marek's avatar
Andreas Marek committed
445
  elpa/elpa_simd_constants.h \
446
  elpa/elpa.h \
Andreas Marek's avatar
Andreas Marek committed
447
  elpa/elpa_generic.h
448 449

nobase_nodist_elpa_include_HEADERS = \
450
  elpa/elpa_version.h \
451 452
  elpa/elpa_constants.h \
  elpa/elpa_generated.h \
Andreas Marek's avatar
Andreas Marek committed
453
  elpa/elpa_generated_c_api.h
454

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
455
dist_man_MANS = \
Andreas Marek's avatar
Andreas Marek committed
456
  man/elpa2_print_kernels.1 \
Andreas Marek's avatar
Andreas Marek committed
457
  man/elpa_init.3 \
Andreas Marek's avatar
Andreas Marek committed
458
  man/elpa_allocate.3 \
Andreas Marek's avatar
Andreas Marek committed
459
  man/elpa_set.3 \
Andreas Marek's avatar
Andreas Marek committed
460
  man/elpa_setup.3 \
461
  man/elpa_eigenvalues.3 \
462
  man/elpa_eigenvectors.3 \
463 464
  man/elpa_skew_eigenvalues.3 \
  man/elpa_skew_eigenvectors.3 \
465
  man/elpa_generalized_eigenvectors.3 \
466
  man/elpa_generalized_eigenvalues.3 \
467
  man/elpa_cholesky.3 \
468
  man/elpa_invert_triangular.3 \
469
  man/elpa_solve_tridiagonal.3 \
470
  man/elpa_hermitian_multiply.3 \
Andreas Marek's avatar
Andreas Marek committed
471
  man/elpa_deallocate.3 \
472 473
  man/elpa_load_settings.3 \
  man/elpa_store_settings.3 \
Andreas Marek's avatar
Andreas Marek committed
474 475 476 477
  man/elpa_print_settings.3 \
  man/elpa_autotune_save_state.3 \
  man/elpa_autotune_load_state.3 \
  man/elpa_autotune_print_state.3 \
478 479 480 481
  man/elpa_autotune_setup.3 \
  man/elpa_autotune_step.3 \
  man/elpa_autotune_set_best.3 \
  man/elpa_autotune_deallocate.3 \
Andreas Marek's avatar
Andreas Marek committed
482
  man/elpa_uninit.3
483

484
dist_doc_DATA = README.md USERS_GUIDE.md USERS_GUIDE_DEPRECATED_LEGACY_API.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
485

486 487
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
488
pkgconfig_DATA = @PKG_CONFIG_FILE@
489

490 491
# programs
bin_PROGRAMS = \
492
  elpa2_print_kernels@SUFFIX@
493

494 495
noinst_PROGRAMS =
check_SCRIPTS =
496

497 498
test_program_ldadd = libelpatest@SUFFIX@.la libelpa@SUFFIX@.la
test_program_fcflags = $(AM_FCFLAGS) $(FC_MODOUT)test_modules $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
499 500 501

# library with shared sources for the test files
noinst_LTLIBRARIES += libelpatest@SUFFIX@.la
502
libelpatest@SUFFIX@_la_FCFLAGS = $(test_program_fcflags)
503
libelpatest@SUFFIX@_la_SOURCES = \
504
  test/shared/tests_variable_definitions.F90 \
Andreas Marek's avatar
Andreas Marek committed
505 506
  test/shared/mod_tests_scalapack_interfaces.F90 \
  test/shared/mod_tests_blas_interfaces.F90 \
507 508 509 510 511 512
  test/shared/test_util.F90 \
  test/shared/test_read_input_parameters.F90 \
  test/shared/test_check_correctness.F90 \
  test/shared/test_setup_mpi.F90 \
  test/shared/test_blacs_infrastructure.F90 \
  test/shared/test_prepare_matrix.F90 \
513
  test/shared/test_analytic.F90 \
514
  test/shared/test_output_type.F90
Andreas Marek's avatar
Andreas Marek committed
515

516 517 518 519 520
if WITH_SCALAPACK_TESTS
libelpatest@SUFFIX@_la_SOURCES += \
  test/shared/test_scalapack.F90
endif

521
if HAVE_REDIRECT
522
libelpatest@SUFFIX@_la_SOURCES += \
523 524
  test/shared/test_redir.c \
  test/shared/test_redirect.F90
525 526 527 528
endif


elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2/elpa2_print_kernels.F90
529
elpa2_print_kernels@SUFFIX@_LDADD = libelpa@SUFFIX@.la
530
elpa2_print_kernels@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)modules
531

532
include test_programs.am
533

534 535
#include test_programs_manual.am

536 537 538 539
noinst_PROGRAMS += validate_double_instance@SUFFIX@
check_SCRIPTS += validate_double_instance@SUFFIX@_default.sh
validate_double_instance@SUFFIX@_SOURCES = test/Fortran/elpa2/double_instance.F90
validate_double_instance@SUFFIX@_LDADD = $(test_program_ldadd)
540
validate_double_instance@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
541 542 543 544 545

noinst_PROGRAMS += validate_real_2stage_banded@SUFFIX@
check_SCRIPTS += validate_real_2stage_banded@SUFFIX@_default.sh
validate_real_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/real_2stage_banded.F90 
validate_real_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
546
validate_real_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
547 548 549 550 551

noinst_PROGRAMS += validate_complex_2stage_banded@SUFFIX@
check_SCRIPTS += validate_complex_2stage_banded@SUFFIX@_default.sh
validate_complex_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/complex_2stage_banded.F90
validate_complex_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
552
validate_complex_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
553 554

if WANT_SINGLE_PRECISION_REAL
555 556 557 558
noinst_PROGRAMS += validate_single_real_2stage_banded@SUFFIX@
check_SCRIPTS += validate_single_real_2stage_banded@SUFFIX@_default.sh
validate_single_real_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/single_real_2stage_banded.F90
validate_single_real_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
559
validate_single_real_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
560 561 562
endif

if WANT_SINGLE_PRECISION_COMPLEX
563 564 565 566
noinst_PROGRAMS += validate_single_complex_2stage_banded@SUFFIX@
check_SCRIPTS += validate_single_complex_2stage_banded@SUFFIX@_default.sh
validate_single_complex_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/single_complex_2stage_banded.F90
validate_single_complex_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
567
validate_single_complex_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
568 569
endif

570 571
# python wrapper
pyelpadir = $(pythondir)/pyelpa
572
if WITH_PYTHON
573
pyelpa_PYTHON = python/pyelpa/__init__.py python/pyelpa/distributedmatrix.py
574
pyelpa_LTLIBRARIES = wrapper.la
575 576 577 578
else
pyelpa_PYTHON =
pyelpa_LTLIBRARIES =
endif
579
nodist_wrapper_la_SOURCES = python/pyelpa/wrapper.c
580 581
wrapper_la_LDFLAGS = -module -avoid-version -shared $(AM_LDFLAGS)
wrapper_la_LIBADD = libelpa@SUFFIX@.la
582
wrapper_la_CFLAGS = $(PYTHON_INCLUDE) $(NUMPY_INCLUDE) $(AM_CFLAGS)
583

584
python/pyelpa/wrapper.c: python/pyelpa/wrapper.pyx
585
	cython $< -o $@
586
# test scripts
587
TASKS ?= 2
588
if WITH_MPI
589
  wrapper=$(MPI_BINARY) -n $${TASKS:-$(TASKS)}
590
else
591
  wrapper=
592
endif
593
TESTS = $(check_SCRIPTS)
594 595 596 597 598 599
%_extended.sh: %
	@echo "#!/bin/bash" > $@
	@echo 'if [ "$$CHECK_LEVEL" = "extended" ] ; then $(wrapper) ./$^ $$TEST_FLAGS ; else exit 77; fi' >> $@
	@chmod +x $@

%_default.sh: %
600
	@echo "#!/bin/bash" > $@
601
	@echo '$(wrapper)' ./$^ '$$TEST_FLAGS' >> $@
602
	@chmod +x $@
603

604 605 606 607 608 609
if WITH_PYTHON_TESTS
check_SCRIPTS += test_python.sh
endif

test_python.sh:
	@echo '#!/bin/bash' > $@
610
# this is kind of hacky... is there a better way to get wrapper.so?
611 612 613 614
	@echo 'export PYTHONPATH=./python-copy:$$PYTHONPATH' >> $@
	@echo 'cp -r $(abs_top_srcdir)/python python-copy || exit 1' >> $@
	@echo 'chmod u+rwX -R python-copy || exit 1' >> $@
	@echo 'cp .libs/wrapper.so python-copy/pyelpa/ || exit 1' >> $@
615
# the dlopen flags are needed for MKL to work properly...
616
# only in os from python 3.3 on
617
	@echo "$(wrapper) $(PYTHON) -c 'import sys, os; sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL); import pytest; sys.exit(pytest.main([\"./python-copy\", \"-p\", \"no:cacheprovider\"]))'" >> $@
Sebastian Ohlmann's avatar
Sebastian Ohlmann committed
618
	@echo 'exit_code=$$?' >> $@
619
	@echo 'rm -rf python-copy || exit 1' >> $@
Sebastian Ohlmann's avatar
Sebastian Ohlmann committed
620
	@echo 'exit $$exit_code' >> $@
621 622
	@chmod +x $@

623 624
include doxygen.am

625
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
626 627
  elpa_generated.h \
  elpa_generated_c_api.h \
Andreas Marek's avatar
Andreas Marek committed
628
  elpa1_test* \
629
  elpa2_test*\
Andreas Marek's avatar
Andreas Marek committed
630 631
  elpa2_real* \
  elpa1_real* \
632
  elpa*.sh \
633
  test*.sh \
Andreas Marek's avatar
Andreas Marek committed
634 635 636 637
  single_real* \
  single_complex* \
  real* \
  complex* \
638
  double_instance* \
639
  *.i \
Sebastian Ohlmann's avatar
Sebastian Ohlmann committed
640 641
  python/pyelpa/wrapper.c \
  check_python.sh
642 643

clean-local:
644
	-rm -rf modules/* private_modules/* test_modules/* .fortran_dependencies/*
645
	-rm -rf validate_*.sh
Andreas Marek's avatar
Andreas Marek committed
646 647 648 649 650
	-rm -rf real_2stage*.sh
	-rm -rf complex_2stage*.sh
	-rm -rf single_complex_2stage*.sh
	-rm -rf single_real_2stage*.sh
	-rm -rf double_instance_onenode*.sh
651
	-rm -rf $(generated_headers)
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
652 653

distclean-local:
Andreas Marek's avatar
Andreas Marek committed
654 655 656 657 658
	-rm -rf ./m4
	-rm -rf ./src
	-rm -rf ./test
	-rm -rf ./modules
	-rm -rf .fortran_dependencies
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
659
	-rm config-f90.h
660
	-rm -rf ./test/.deps
Andreas Marek's avatar
Andreas Marek committed
661
	-rm -rf elpa/elpa_generated_c_api.h
662

663
EXTRA_DIST = \
664
  elpa.spec \
665
  elpa/elpa.h \
666
  elpa/elpa_generic.h \
667
  fdep/fortran_dependencies.mk \
668
  fdep/fortran_dependencies.pl \
669
  manual_cpp \
670
  nvcc_wrap \
Andreas Marek's avatar
Andreas Marek committed
671
  remove_xcompiler \
Andreas Marek's avatar
Andreas Marek committed
672 673
  src/helpers/fortran_blas_interfaces.F90 \
  src/helpers/fortran_scalapack_interfaces.F90 \
674
  src/GPU/cuUtils_template.cu \
Andreas Marek's avatar
Andreas Marek committed
675
  src/elpa_api_math_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
676
  src/elpa_impl_math_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
677
  src/helpers/elpa_redistribute_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
678
  src/elpa_impl_generalized_transform_template.F90 \
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701
  src/elpa1/elpa1_compute_template.F90 \
  src/elpa1/elpa1_merge_systems_real_template.F90 \
  src/elpa1/elpa1_solve_tridi_real_template.F90 \
  src/elpa1/elpa1_template.F90 \
  src/elpa1/elpa1_tools_template.F90 \
  src/elpa1/elpa1_trans_ev_template.F90 \
  src/elpa1/elpa1_tridiag_template.F90 \
  src/elpa1/elpa_cholesky_template.F90 \
  src/elpa1/elpa_invert_trm.F90 \
  src/elpa1/elpa_multiply_a_b.F90 \
  src/elpa1/elpa_reduce_add_vectors.F90 \
  src/elpa1/elpa_solve_tridi_impl_public.F90 \
  src/elpa1/elpa_transpose_vectors.F90 \
  src/elpa2/compute_hh_trafo.F90 \
  src/elpa2/elpa2_bandred_template.F90 \
  src/elpa2/elpa2_compute_complex_template.F90 \
  src/elpa2/elpa2_compute_real_template.F90 \
  src/elpa2/elpa2_herm_matrix_allreduce_complex_template.F90 \
  src/elpa2/elpa2_symm_matrix_allreduce_real_template.F90 \
  src/elpa2/elpa2_template.F90 \
  src/elpa2/elpa2_trans_ev_band_to_full_template.F90 \
  src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90 \
  src/elpa2/elpa2_tridiag_band_template.F90 \
702
  src/elpa2/kernels/complex_128bit_256bit_512bit_BLOCK_template.c \
703
  src/elpa2/kernels/complex_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
704
  src/elpa2/kernels/real_128bit_256bit_512bit_BLOCK_template.c \
705 706
  src/elpa2/kernels/real_template.F90 \
  src/elpa2/kernels/simple_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
707
  src/elpa2/kernels/simple_block4_template.F90 \
708
  src/elpa2/kernels/simple_block6_template.F90 \
709 710 711 712 713 714 715
  src/elpa2/pack_unpack_cpu.F90 \
  src/elpa2/pack_unpack_gpu.F90 \
  src/elpa2/qr/elpa_pdgeqrf_template.F90 \
  src/elpa2/qr/elpa_pdlarfb_template.F90 \
  src/elpa2/qr/elpa_qrkernels_template.F90 \
  src/elpa2/qr/qr_utils_template.F90 \
  src/elpa2/redist_band.F90 \
716
  src/elpa_generalized/cannon_forw_template.c \
717
  src/elpa_generalized/cannon_back_template.c \
718
  src/elpa_index.h \
719
  src/fortran_constants.h \
720 721
  src/general/map_global_to_local.F90 \
  src/general/precision_macros.h \
722
  src/general/precision_typedefs.h \
723
  src/general/precision_kinds.F90 \
724
  test/shared/test_precision_kinds.F90 \
725 726
  src/general/prow_pcol.F90 \
  src/general/sanity.F90 \
727
  src/general/error_checking.inc \
728 729
  src/general/elpa_ssr2_template.F90 \
  src/general/elpa_ssmv_template.F90 \
730 731 732 733
  test/Fortran/assert.h \
  test/Fortran/elpa_print_headers.F90 \
  test/shared/test_check_correctness_template.F90 \
  test/shared/test_prepare_matrix_template.F90 \
Pavel Kus's avatar
Pavel Kus committed
734
  test/shared/test_analytic_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
735 736 737 738 739 740
  test_project_1stage/Makefile.am \
  test_project_1stage/autogen.sh \
  test_project_1stage/configure.ac \
  test_project_1stage/fdep \
  test_project_1stage/m4 \
  test_project_1stage/src/test_real.F90 \
741 742 743 744 745
  test_project_2stage/Makefile.am \
  test_project_2stage/autogen.sh \
  test_project_2stage/configure.ac \
  test_project_2stage/fdep \
  test_project_2stage/m4 \
Pavel Kus's avatar
Pavel Kus committed
746 747 748 749 750 751 752
  test_project_2stage/src/test_real2.F90 \
  test_project_C/Makefile.am \
  test_project_C/autogen.sh \
  test_project_C/configure.ac \
  test_project_C/fdep \
  test_project_C/m4 \
  test_project_C/src/test_real.c \
Andreas Marek's avatar
Andreas Marek committed
753
  test_project_C/src/test_blacs_infrastructure.F90
754

Pavel Kus's avatar
Pavel Kus committed
755 756 757 758 759
if WITH_SCALAPACK_TESTS
EXTRA_DIST += \
  test/shared/test_scalapack_template.F90
endif

760
# python wrapper files
761 762
EXTRA_DIST += python/pyelpa/__init__.py \
	      python/pyelpa/distributedmatrix.py \
763 764 765 766 767
	      python/pyelpa/wrapper.pyx \
	      python/tests/test_elpa_import.py \
	      python/tests/test_mpi4py.py \
	      python/tests/test_numroc.py \
	      python/tests/test_with_mpi.py
768

769 770 771
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
772

773

774
@FORTRAN_MODULE_DEPS@
775 776 777 778 779

# Fortran module dependencies only work within each target,
# specify that the test programs need a finished library before
# one can compile them

780
# $1  Object name
781
define require_elpa_lib
782
$1: libelpa@SUFFIX@.la
783 784

endef
785
$(foreach p,$(bin_PROGRAMS) $(noinst_PROGRAMS),$(foreach o,$($p_OBJECTS),$(eval $(call require_elpa_lib,$o))))