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

3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
4

5
6
AM_FCFLAGS = $(SCALAPACK_FCFLAGS) @FC_MODINC@modules @FC_MODOUT@modules
AM_LDFLAGS = $(SCALAPACK_LDFLAGS)
7
8

# libelpa
9
10
lib_LTLIBRARIES = libelpa@SUFFIX@.la
libelpa@SUFFIX@_la_LINK = $(FCLINK) $(AM_LDFLAGS) -version-info $(ELPA_SO_VERSION) -lstdc++
11

12
13
libelpa@SUFFIX@_la_SOURCES = src/mod_precision.f90 \
                             src/elpa_utilities.F90 \
14
	                     src/elpa1_compute.F90 \
Andreas Marek's avatar
Andreas Marek committed
15
16
	                     src/elpa1.F90 \
			     src/elpa2_utilities.F90 \
17
18
			     src/mod_pack_unpack_real.F90 \
			     src/mod_pack_unpack_complex.F90 \
19
			     src/elpa2_compute.F90 \
Andreas Marek's avatar
Andreas Marek committed
20
21
22
23
24
25
			     src/elpa2.F90 \
			     src/elpa_c_interface.F90 \
                             src/elpa_qr/qr_utils.f90 \
                             src/elpa_qr/elpa_qrkernels.f90 \
                             src/elpa_qr/elpa_pdlarfb.f90 \
                             src/elpa_qr/elpa_pdgeqrf.f90
26
27
28
29
30
31
32
33
34
35
36
37
if HAVE_DETAILED_TIMINGS
  libelpa@SUFFIX@_la_SOURCES += src/timer.F90 \
                                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
endif

Andreas Marek's avatar
Andreas Marek committed
38
if WITH_REAL_GENERIC_KERNEL
39
  libelpa@SUFFIX@_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_real.f90
40
41
endif

Andreas Marek's avatar
Andreas Marek committed
42
if WITH_COMPLEX_GENERIC_KERNEL
43
  libelpa@SUFFIX@_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_complex.f90
44
45
endif

Andreas Marek's avatar
Andreas Marek committed
46
if WITH_REAL_GENERIC_SIMPLE_KERNEL
47
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_simple.f90
48
49
endif

Andreas Marek's avatar
Andreas Marek committed
50
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
51
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_simple.f90
52
53
endif

Andreas Marek's avatar
Andreas Marek committed
54
if WITH_REAL_BGP_KERNEL
55
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgp.f90
56
57
endif

Andreas Marek's avatar
Andreas Marek committed
58
if WITH_REAL_BGQ_KERNEL
59
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgq.f90
60
61
endif

Andreas Marek's avatar
Andreas Marek committed
62
if WITH_REAL_SSE_KERNEL
63
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64.s
Andreas Marek's avatar
Andreas Marek committed
64
65
else
if WITH_COMPLEX_SSE_KERNEL
66
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64.s
67
68
endif
endif
Andreas Marek's avatar
Andreas Marek committed
69
70

if WITH_REAL_AVX_BLOCK2_KERNEL
71
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse-avx_2hv.c
72
73
endif

Andreas Marek's avatar
Andreas Marek committed
74
if WITH_REAL_AVX_BLOCK4_KERNEL
75
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse-avx_4hv.c
76
77
endif

Andreas Marek's avatar
Andreas Marek committed
78
if WITH_REAL_AVX_BLOCK6_KERNEL
79
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse-avx_6hv.c
80
81
endif

Andreas Marek's avatar
Andreas Marek committed
82
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
83
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse-avx_1hv.cpp
84
85
endif

Andreas Marek's avatar
Andreas Marek committed
86
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
87
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse-avx_2hv.cpp
88
89
endif

Andreas Marek's avatar
Andreas Marek committed
90
#if WITH_AVX_SANDYBRIDGE
91
#  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse-avx_2hv.c \
92
#                                           src/elpa2_kernels/elpa2_kernels_complex_sse-avx_1hv.cpp
Andreas Marek's avatar
Andreas Marek committed
93
94
#endif

95
# install any .mod files in the include/ dir
96
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
97
nobase_elpa_include_HEADERS = $(wildcard modules/*)
Andreas Marek's avatar
Andreas Marek committed
98
nobase_elpa_include_HEADERS += elpa/elpa.h elpa/elpa_kernel_constants.h elpa/elpa_generated.h
99

Andreas Marek's avatar
Andreas Marek committed
100
man_MANS = man/solve_evp_real.3 \
101
	   man/solve_evp_real_1stage.3 \
Andreas Marek's avatar
Andreas Marek committed
102
	   man/solve_evp_complex.3 \
103
	   man/solve_evp_complex_1stage.3 \
Andreas Marek's avatar
Andreas Marek committed
104
105
106
	   man/solve_evp_real_2stage.3 \
	   man/solve_evp_complex_2stage.3 \
	   man/get_elpa_row_col_comms.3 \
107
	   man/get_elpa_communicators.3 \
Andreas Marek's avatar
Andreas Marek committed
108
109
	   man/print_available_elpa2_kernels.1

110
# other files to distribute
111
filesdir = $(docdir)/examples
112
dist_files_DATA = \
Andreas Marek's avatar
Andreas Marek committed
113
114
115
116
117
118
119
120
121
122
123
  test/fortran_test_programs/read_real.F90 \
  test/fortran_test_programs/test_complex2.F90 \
  test/fortran_test_programs/test_complex2_default_kernel.F90 \
  test/fortran_test_programs/test_complex2_choose_kernel_with_api.F90 \
  test/fortran_test_programs/test_complex.F90 \
  test/fortran_test_programs/test_real2.F90 \
  test/fortran_test_programs/test_real2_default_kernel.F90 \
  test/fortran_test_programs/test_real2_default_kernel_qr_decomposition.F90 \
  test/fortran_test_programs/test_real2_choose_kernel_with_api.F90 \
  test/fortran_test_programs/test_real.F90 \
  test/fortran_test_programs/test_real_with_c.F90 \
124
  src/print_available_elpa2_kernels.F90
125

126
127
dist_doc_DATA = README COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt

128
129
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
130
pkgconfig_DATA = @PKG_CONFIG_FILE@
131

132
133
# programs
bin_PROGRAMS = \
134
135
136
137
138
  elpa1_test_real@SUFFIX@ \
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
  elpa2_test_complex@SUFFIX@ \
  elpa2_print_kernels@SUFFIX@
139
140

noinst_PROGRAMS = \
141
  elpa2_test_real_default_kernel@SUFFIX@ \
142
  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@ \
143
144
  elpa2_test_complex_default_kernel@SUFFIX@ \
  elpa2_test_real_choose_kernel_with_api@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
145
  elpa2_test_complex_choose_kernel_with_api@SUFFIX@ \
146
  elpa1_test_real_c_version@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
147
148
149
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
  elpa2_test_complex_c_version@SUFFIX@ \
150
  elpa1_test_real_with_c@SUFFIX@
Andreas Marek's avatar
Andreas Marek committed
151

152

153
build_lib = libelpa@SUFFIX@.la
Andreas Marek's avatar
Andreas Marek committed
154

155
if HAVE_REDIRECT
Andreas Marek's avatar
Andreas Marek committed
156
  redirect_sources = test/shared_sources/redir.c test/shared_sources/redirect.F90
157
158
159
160
else
  redirect_sources =
endif

Andreas Marek's avatar
Andreas Marek committed
161
162
163
shared_sources = test/shared_sources/util.F90 test/shared_sources/read_input_parameters.F90  test/shared_sources/check_correctnes.F90 test/shared_sources/setup_mpi.F90 \
		 test/shared_sources/blacs_infrastructure.F90 test/shared_sources/prepare_matrix.F90

Andreas Marek's avatar
Andreas Marek committed
164
elpa1_test_real_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa1_test_real_c_version.c $(shared_sources) $(redirect_sources)
Andreas Marek's avatar
Andreas Marek committed
165
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib)
166
elpa1_test_real_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)
Andreas Marek's avatar
Andreas Marek committed
167

Andreas Marek's avatar
Andreas Marek committed
168
169
170
171
172
173
174
175
176
177
178
179
180
181
elpa1_test_complex_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa1_test_complex_c_version.c $(shared_sources) $(redirect_sources)
elpa1_test_complex_c_version@SUFFIX@_LDADD = $(build_lib)
elpa1_test_complex_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)

elpa2_test_real_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa2_test_real_c_version.c $(shared_sources) $(redirect_sources)
elpa2_test_real_c_version@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)

elpa2_test_complex_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa2_test_complex_c_version.c $(shared_sources) $(redirect_sources)
elpa2_test_complex_c_version@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)


elpa1_test_real@SUFFIX@_SOURCES = test/fortran_test_programs/test_real.F90 $(shared_sources) $(redirect_sources)
182
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
183

Andreas Marek's avatar
Andreas Marek committed
184
elpa1_test_real_with_c@SUFFIX@_SOURCES = test/fortran_test_programs/test_real_with_c.F90 test/shared_sources/mod_from_c.F90 test/shared_sources/call_elpa1.c $(shared_sources) $(redirect_sources)
Andreas Marek's avatar
Andreas Marek committed
185
186
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)

187
188
#elpa1_test_complex_with_c@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex_with_c.F90 test/shared_sources/mod_from_c.F90 test/shared_sources/call_elpa1.c $(shared_sources) $(redirect_sources)
#elpa1_test_complex_with_c@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
189
190

elpa2_test_real@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2.F90 $(shared_sources) $(redirect_sources)
191

192
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
193

Andreas Marek's avatar
Andreas Marek committed
194
elpa2_test_real_default_kernel@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel.F90 $(shared_sources) $(redirect_sources)
195

196
elpa2_test_real_default_kernel@SUFFIX@_LDADD = $(build_lib)
197

Andreas Marek's avatar
Andreas Marek committed
198
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel_qr_decomposition.F90 $(shared_sources) $(redirect_sources)
199
200
201

elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_LDADD = $(build_lib)

Andreas Marek's avatar
Andreas Marek committed
202
elpa2_test_real_choose_kernel_with_api@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_choose_kernel_with_api.F90 $(shared_sources) $(redirect_sources)
203

204
elpa2_test_real_choose_kernel_with_api@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
205

Andreas Marek's avatar
Andreas Marek committed
206
elpa1_test_complex@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex.F90 $(shared_sources) $(redirect_sources)
207

208
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
209

Andreas Marek's avatar
Andreas Marek committed
210
elpa2_test_complex@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2.F90 $(shared_sources) $(redirect_sources)
211

212
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
213

Andreas Marek's avatar
Andreas Marek committed
214
elpa2_test_complex_default_kernel@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_default_kernel.F90 $(shared_sources) $(redirect_sources)
215

216
elpa2_test_complex_default_kernel@SUFFIX@_LDADD = $(build_lib)
217

Andreas Marek's avatar
Andreas Marek committed
218
elpa2_test_complex_choose_kernel_with_api@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_choose_kernel_with_api.F90 $(shared_sources) $(redirect_sources)
219

220
elpa2_test_complex_choose_kernel_with_api@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
221

Andreas Marek's avatar
Andreas Marek committed
222
elpa2_print_kernels@SUFFIX@_SOURCES = src/print_available_elpa2_kernels.F90 $(shared_sources) $(redirect_sources)
223

224
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
225

226
check_SCRIPTS = \
227
  elpa1_test_real.sh \
Andreas Marek's avatar
Andreas Marek committed
228
229
  elpa1_test_real_with_c.sh \
  elpa1_test_real_c_version.sh \
Andreas Marek's avatar
Andreas Marek committed
230
231
232
  elpa1_test_complex_c_version.sh \
  elpa2_test_real_c_version.sh \
  elpa2_test_complex_c_version.sh \
233
234
235
236
237
  elpa2_test_real.sh \
  elpa2_test_real_default_kernel.sh \
  elpa1_test_complex.sh \
  elpa2_test_complex.sh \
  elpa2_test_complex_default_kernel.sh \
238
  elpa2_test_real_default_kernel_qr_decomposition.sh \
239
240
241
  elpa2_test_real_choose_kernel_with_api.sh \
  elpa2_test_complex_choose_kernel_with_api.sh \
  elpa2_print_kernels@SUFFIX@
242
243

TESTS = $(check_SCRIPTS)
244
elpa1_test_real.sh:
245
	echo 'mpiexec -n 2 ./elpa1_test_real@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real.sh
246
	chmod +x elpa1_test_real.sh
247

Andreas Marek's avatar
Andreas Marek committed
248
249
250
251
elpa1_test_real_with_c.sh:
	echo 'mpiexec -n 2 ./elpa1_test_real_with_c@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_with_c.sh
	chmod +x elpa1_test_real_with_c.sh

Andreas Marek's avatar
Andreas Marek committed
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
elpa2_test_real_c_version.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_c_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_c_version.sh
	chmod +x elpa2_test_real_c_version.sh

elpa2_test_complex_c_version.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_c_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_c_version.sh
	chmod +x elpa2_test_complex_c_version.sh

elpa1_test_real_c_version.sh:
	echo 'mpiexec -n 2 ./elpa1_test_real_c_version@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_c_version.sh
	chmod +x elpa1_test_real_c_version.sh

elpa1_test_complex_c_version.sh:
	echo 'mpiexec -n 2 ./elpa1_test_complex_c_version@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex_c_version.sh
	chmod +x elpa1_test_complex_c_version.sh
267
elpa2_test_real.sh:
268
	echo 'mpiexec -n 2 ./elpa2_test_real@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real.sh
269
	chmod +x elpa2_test_real.sh
270

271
elpa2_test_real_default_kernel.sh:
272
	echo 'mpiexec -n 2 ./elpa2_test_real_default_kernel@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_default_kernel.sh
273
	chmod +x elpa2_test_real_default_kernel.sh
Andreas Marek's avatar
Andreas Marek committed
274

275
elpa2_test_real_default_kernel_qr_decomposition.sh:
276
	echo 'mpiexec -n 2 ./elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@' > elpa2_test_real_default_kernel_qr_decomposition.sh
277
278
	chmod +x elpa2_test_real_default_kernel_qr_decomposition.sh

279
elpa2_test_real_choose_kernel_with_api.sh:
280
	echo 'mpiexec -n 2 ./elpa2_test_real_choose_kernel_with_api@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_choose_kernel_with_api.sh
281
	chmod +x elpa2_test_real_choose_kernel_with_api.sh
Andreas Marek's avatar
Andreas Marek committed
282

283
elpa1_test_complex.sh:
284
	echo 'mpiexec -n 2 ./elpa1_test_complex@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex.sh
285
	chmod +x elpa1_test_complex.sh
286

287
elpa2_test_complex.sh:
288
	echo 'mpiexec -n 2 ./elpa2_test_complex@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex.sh
289
	chmod +x elpa2_test_complex.sh
Andreas Marek's avatar
Andreas Marek committed
290

291
elpa2_test_complex_default_kernel.sh:
292
	echo 'mpiexec -n 2 ./elpa2_test_complex_default_kernel@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_default_kernel.sh
293
	chmod +x elpa2_test_complex_default_kernel.sh
Andreas Marek's avatar
Andreas Marek committed
294

295
elpa2_test_complex_choose_kernel_with_api.sh:
296
	echo 'mpiexec -n 2 ./elpa2_test_complex_choose_kernel_with_api@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_choose_kernel_with_api.sh
297
	chmod +x elpa2_test_complex_choose_kernel_with_api.sh
Andreas Marek's avatar
Andreas Marek committed
298

Andreas Marek's avatar
Andreas Marek committed
299
300
301
elpa2_utilities.i: $(top_srcdir)/src/elpa2_utilities.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2_utilities.F90 -o $@

Andreas Marek's avatar
Andreas Marek committed
302
303
elpa2.i: $(top_srcdir)/src/elpa2.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2.F90 -o $@
304

Andreas Marek's avatar
Andreas Marek committed
305
306
elpa1.i: $(top_srcdir)/src/elpa1.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa1.F90 -o $@
307

308
309
include doxygen.am

310
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
311
  elpa-generated.h \
312
313
314
315
  elpa1_test_real.sh \
  elpa1_test_complex.sh \
  elpa2_test_real.sh \
  elpa2_test_real_default_kernel.sh \
316
  elpa2_test_real_default_kernel_qr_decomposition.sh \
317
318
319
320
  elpa2_test_complex.sh \
  elpa2_test_complex_default_kernel.sh \
  elpa2_test_real_choose_kernel_with_api.sh \
  elpa2_test_complex_choose_kernel_with_api.sh \
Andreas Marek's avatar
Andreas Marek committed
321
322
323
324
325
  elpa1_test_real_with_c.sh \
  elpa1_test_real_c_version.sh \
  elpa1_test_complex_c_version.sh \
  elpa2_test_real_c_version.sh \
  elpa2_test_complex_c_version.sh \
326
  *.i
327
328

clean-local:
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
329
330
331
332
	-rm -rf modules/* .fortran_dependencies/*

distclean-local:
	-rm config-f90.h
333
334
335
	-rm -rf ./src/elpa2_kernels/.deps
	-rm -rf ./src/.deps
	-rm -rf ./test/.deps
336
	-rm -rf ./elpa/elpa_generated.h
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
337
	-rmdir ./src/elpa2_kernels/
338
339
	-rmdir ./src
	-rmdir ./test
340
	-rmdir ./m4
341
	-rmdir modules/
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
342
	-rmdir .fortran_dependencies/
343

344
345
346
347
348
349
EXTRA_DIST = \
  fdep/fortran_dependencies.pl \
  fdep/fortran_dependencies.mk \
  src/elpa_reduce_add_vectors.X90 \
  src/elpa_transpose_vectors.X90 \
  src/redist_band.X90
350

351
352
353
354
355
356
357
# Rules to re-generated the headers
elpa/elpa_generated.h: $(top_srcdir)/src/elpa_c_interface.F90
	grep -h "^ *!c>" $^ | sed 's/^ *!c>//;' > $@ || { rm $@; exit 1; }

test/shared_sources/generated.h: $(wildcard $(top_srcdir)/test/shared_sources/*.F90)
	grep -h "^ *!c>" $^ | sed 's/^ *!c>//;' > $@ || { rm $@; exit 1; }

358
359
360
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
361

362

363
@FORTRAN_MODULE_DEPS@
364
365
366
367
368

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

369
# $1  Object name
370
define require_elpa_lib
371
$1: libelpa@SUFFIX@.la
372
373

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