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

3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
4

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

# libelpa

10
11
# parts with public interface
noinst_LTLIBRARIES = libelpa@SUFFIX@_public.la
12
libelpa@SUFFIX@_public_la_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@modules @FC_MODINC@private_modules
13
libelpa@SUFFIX@_public_la_SOURCES = \
14
	src/elpa.F90 \
15
16
        src/elpa1.F90 \
        src/elpa2.F90 \
17
	src/elpa1_auxiliary.F90 \
18
        src/elpa2_utilities.F90 \
19
        src/elpa_utilities.F90
20
21
22

# internal parts
noinst_LTLIBRARIES += libelpa@SUFFIX@_private.la
23
libelpa@SUFFIX@_private_la_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
24
libelpa@SUFFIX@_private_la_SOURCES = \
25
        src/mod_precision.f90 \
26
27
28
29
30
31
32
        src/mod_mpi.F90 \
        src/mod_mpi_stubs.F90 \
        src/mod_pack_unpack_real.F90 \
        src/mod_compute_hh_trafo_real.F90 \
        src/mod_compute_hh_trafo_complex.F90 \
        src/mod_pack_unpack_complex.F90 \
        src/aligned_mem.F90 \
33
        src/elpa1_compute_private.F90 \
34
        src/elpa2_compute.F90 \
35
36
        src/elpa2_kernels/mod_fortran_interfaces.F90 \
        src/elpa2_kernels/mod_single_hh_trafo_real.F90 \
37
38
39
40
41
42
        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

43
EXTRA_libelpa@SUFFIX@_private_la_DEPENDENCIES = \
44
45
46
        src/elpa_reduce_add_vectors.X90 \
        src/elpa_transpose_vectors.X90 \
        src/redist_band.X90
47

48
lib_LTLIBRARIES = libelpa@SUFFIX@.la
49
libelpa@SUFFIX@_la_LINK = $(FCLINK) $(AM_LDFLAGS) -version-info $(ELPA_SO_VERSION)
50
51
52
53
libelpa@SUFFIX@_la_LIBADD = libelpa@SUFFIX@_public.la libelpa@SUFFIX@_private.la
libelpa@SUFFIX@_la_SOURCES =


54
if HAVE_DETAILED_TIMINGS
55
  libelpa@SUFFIX@_private_la_SOURCES += \
56
57
58
59
60
61
62
63
64
        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
65
66
endif

67
if !WITH_MPI
68
  libelpa@SUFFIX@_private_la_SOURCES += src/mod_time_c.F90
69
if !HAVE_DETAILED_TIMINGS
70
  libelpa@SUFFIX@_private_la_SOURCES += src/ftimings/time.c
71
72
73
endif
endif

Andreas Marek's avatar
Andreas Marek committed
74
if WITH_REAL_GENERIC_KERNEL
75
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_real.F90
76
77
endif

Andreas Marek's avatar
Andreas Marek committed
78
if WITH_COMPLEX_GENERIC_KERNEL
79
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_complex.F90
80
81
endif

Andreas Marek's avatar
Andreas Marek committed
82
if WITH_REAL_GENERIC_SIMPLE_KERNEL
83
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_simple.F90
84
85
endif

Andreas Marek's avatar
Andreas Marek committed
86
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
87
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_simple.F90
88
89
endif

Andreas Marek's avatar
Andreas Marek committed
90
if WITH_REAL_BGP_KERNEL
91
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgp.f90
92
93
endif

Andreas Marek's avatar
Andreas Marek committed
94
if WITH_REAL_BGQ_KERNEL
95
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgq.f90
96
97
endif

98
if WITH_REAL_SSE_ASSEMBLY_KERNEL
99
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64.s
Andreas Marek's avatar
Andreas Marek committed
100
else
101
if WITH_COMPLEX_SSE_ASSEMBLY_KERNEL
102
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64.s
103
104
endif
endif
Andreas Marek's avatar
Andreas Marek committed
105

106
if WITH_REAL_SSE_BLOCK2_KERNEL
107
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_2hv.c
108
109
endif

Andreas Marek's avatar
Andreas Marek committed
110
if WITH_REAL_AVX_BLOCK2_KERNEL
111
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv.c
112
113
else
if WITH_REAL_AVX2_BLOCK2_KERNEL
114
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv.c
115
endif
116
117
endif

118
if WITH_REAL_SSE_BLOCK4_KERNEL
119
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv.c
120
121
endif

Andreas Marek's avatar
Andreas Marek committed
122
if WITH_REAL_AVX_BLOCK4_KERNEL
123
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv.c
124
125
else
if WITH_REAL_AVX2_BLOCK4_KERNEL
126
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv.c
127
endif
128
129
endif

130
if WITH_REAL_SSE_BLOCK6_KERNEL
131
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv.c
132
133
endif

Andreas Marek's avatar
Andreas Marek committed
134
if WITH_REAL_AVX_BLOCK6_KERNEL
135
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv.c
136
137
else
if WITH_REAL_AVX2_BLOCK6_KERNEL
138
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv.c
139
endif
140
141
endif

142
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
143
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv.c
144
145
endif

Andreas Marek's avatar
Andreas Marek committed
146
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
147
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv.c
148
149
else
if WITH_COMPLEX_AVX2_BLOCK1_KERNEL
150
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv.c
151
endif
152
153
endif

154
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
155
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv.c
156
157
endif

Andreas Marek's avatar
Andreas Marek committed
158
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
159
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv.c
160
161
else
if WITH_COMPLEX_AVX2_BLOCK2_KERNEL
162
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv.c
163
endif
164
165
endif

166
167
168
include generated_headers.am
BUILT_SOURCES = $(generated_headers)

169
# install public Fortran modules files in the include/ dir
170
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
171
nobase_elpa_include_HEADERS = $(wildcard modules/*)
Andreas Marek's avatar
Andreas Marek committed
172
nobase_elpa_include_HEADERS += elpa/elpa.h elpa/elpa_kernel_constants.h elpa/elpa_generated.h
173

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
174
175
dist_man_MANS = \
	   man/solve_evp_real.3 \
176
	   man/solve_evp_real_1stage.3 \
Andreas Marek's avatar
Andreas Marek committed
177
	   man/solve_evp_complex.3 \
178
	   man/solve_evp_complex_1stage.3 \
Andreas Marek's avatar
Andreas Marek committed
179
180
181
	   man/solve_evp_real_2stage.3 \
	   man/solve_evp_complex_2stage.3 \
	   man/get_elpa_row_col_comms.3 \
182
	   man/get_elpa_communicators.3 \
183
	   man/elpa_mult_at_b_real.3 \
184
	   man/elpa_mult_ah_b_complex.3 \
185
	   man/elpa_invert_trm_real.3 \
186
	   man/elpa_invert_trm_complex.3 \
187
188
	   man/elpa_solve_evp_real.3 \
	   man/elpa_solve_evp_complex.3 \
189
	   man/elpa2_print_kernels.1
Andreas Marek's avatar
Andreas Marek committed
190

191
# other files to distribute
192
filesdir = $(docdir)/examples
193
dist_files_DATA = \
194
195
  test/Fortran/read_real.F90 \
  test/Fortran/test_complex2.F90 \
196
  test/Fortran/test_complex2_default.F90 \
197
198
199
  test/Fortran/test_complex2_api.F90 \
  test/Fortran/test_complex.F90 \
  test/Fortran/test_real2.F90 \
200
  test/Fortran/test_real2_default.F90 \
201
202
203
204
205
  test/Fortran/test_real2_qr.F90 \
  test/Fortran/test_real2_api.F90 \
  test/Fortran/test_real.F90 \
  test/Fortran/test_real_with_c.F90 \
  test/Fortran/test_toeplitz.F90 \
206
  test/Fortran/test_transpose_multiply_real.F90 \
207
  test/Fortran/test_transpose_multiply_complex.F90 \
208
  test/Fortran/test_cholesky_real.F90 \
209
  test/Fortran/test_invert_trm_real.F90 \
210
  test/Fortran/test_cholesky_complex.F90 \
211
  test/Fortran/test_invert_trm_complex.F90 \
212
  src/elpa2_print_kernels.F90
213

214
dist_doc_DATA = README.md USERS_GUIDE.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
215

216
217
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
218
pkgconfig_DATA = @PKG_CONFIG_FILE@
219

220
221
# programs
bin_PROGRAMS = \
222
223
224
  elpa2_print_kernels@SUFFIX@

noinst_PROGRAMS = \
225
226
227
228
  elpa1_test_real@SUFFIX@ \
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
  elpa2_test_complex@SUFFIX@ \
229
230
231
232
233
  elpa2_test_real_default@SUFFIX@ \
  elpa2_test_real_qr@SUFFIX@ \
  elpa2_test_complex_default@SUFFIX@ \
  elpa2_test_real_api@SUFFIX@ \
  elpa2_test_complex_api@SUFFIX@ \
234
235
  elpa2_test_complex_api@SUFFIX@ \
  elpa_driver_real@SUFFIX@ \
236
  elpa_driver_complex@SUFFIX@ \
237
  elpa1_real_toeplitz@SUFFIX@ \
238
  elpa1_real_transpose_multiply@SUFFIX@ \
239
  elpa1_complex_transpose_multiply@SUFFIX@ \
240
  elpa1_real_cholesky@SUFFIX@ \
241
  elpa1_real_invert_trm@SUFFIX@ \
242
  elpa1_complex_cholesky@SUFFIX@ \
243
  elpa1_complex_invert_trm@SUFFIX@ \
244
  elpa1_test_real_with_c@SUFFIX@ \
245
  elpa1_test_real_c_version@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
246
247
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
248
  elpa2_test_complex_c_version@SUFFIX@ \
249
  elpa_driver_real_c_version@SUFFIX@ \
250
  elpa_driver_complex_c_version@SUFFIX@
251

252

Andreas Marek's avatar
Andreas Marek committed
253
build_lib = libelpatest@SUFFIX@.la libelpa@SUFFIX@.la
254
255
256
257
258

# library with shared sources for the test files
noinst_LTLIBRARIES += libelpatest@SUFFIX@.la
libelpatest@SUFFIX@_la_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
libelpatest@SUFFIX@_la_SOURCES = \
259
260
261
262
263
264
265
266
267
	test/shared/util.F90 \
	test/shared/read_input_parameters.F90  \
	test/shared/check_correctnes.F90 \
	test/shared/setup_mpi.F90 \
	test/shared/blacs_infrastructure.F90 \
	test/shared/prepare_matrix.F90 \
	test/shared/mod_output_types.F90 \
	test/shared/mod_from_c.F90 \
	test/shared/call_elpa1.c
Andreas Marek's avatar
Andreas Marek committed
268

269
if HAVE_REDIRECT
270
libelpatest@SUFFIX@_la_SOURCES += \
271
272
	test/shared/redir.c \
	test/shared/redirect.F90
273
274
endif

275
elpa1_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_real_c_version.c
276
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
277
elpa1_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
278
EXTRA_elpa1_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
279

280
elpa1_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_complex_c_version.c
281
elpa1_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
282
elpa1_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
283
EXTRA_elpa1_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
284

285
elpa2_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa2_test_real_c_version.c
286
elpa2_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
287
elpa2_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
288
EXTRA_elpa2_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
289

290
elpa2_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa2_test_complex_c_version.c
291
elpa2_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
292
elpa2_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
293
EXTRA_elpa2_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
294

295
296
297
298
299
elpa_driver_complex_c_version@SUFFIX@_SOURCES = test/C/elpa_driver_complex_c_version.c
elpa_driver_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
elpa_driver_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa_driver_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

300
301
302
303
304
elpa_driver_real_c_version@SUFFIX@_SOURCES = test/C/elpa_driver_real_c_version.c
elpa_driver_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
elpa_driver_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa_driver_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

305
elpa1_test_real@SUFFIX@_SOURCES = test/Fortran/test_real.F90
306
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
307
elpa1_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
308
EXTRA_elpa1_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
309

310
311
312
313
elpa1_real_toeplitz@SUFFIX@_SOURCES = test/Fortran/test_toeplitz.F90
elpa1_real_toeplitz@SUFFIX@_LDADD = $(build_lib)
elpa1_real_toeplitz@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_toeplitz@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
314

315
316
317
318
319
elpa1_real_transpose_multiply@SUFFIX@_SOURCES = test/Fortran/test_transpose_multiply_real.F90
elpa1_real_transpose_multiply@SUFFIX@_LDADD = $(build_lib)
elpa1_real_transpose_multiply@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_transpose_multiply@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

320
321
322
323
elpa1_complex_transpose_multiply@SUFFIX@_SOURCES = test/Fortran/test_transpose_multiply_complex.F90
elpa1_complex_transpose_multiply@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_transpose_multiply@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_transpose_multiply@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
324

325
326
327
328
329
elpa1_real_cholesky@SUFFIX@_SOURCES = test/Fortran/test_cholesky_real.F90
elpa1_real_cholesky@SUFFIX@_LDADD = $(build_lib)
elpa1_real_cholesky@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_cholesky@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

330
331
332
333
334
elpa1_real_invert_trm@SUFFIX@_SOURCES = test/Fortran/test_invert_trm_real.F90
elpa1_real_invert_trm@SUFFIX@_LDADD = $(build_lib)
elpa1_real_invert_trm@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_invert_trm@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

335
336
337
338
339
elpa1_complex_cholesky@SUFFIX@_SOURCES = test/Fortran/test_cholesky_complex.F90
elpa1_complex_cholesky@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_cholesky@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_cholesky@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

340
341
342
343
344
elpa1_complex_invert_trm@SUFFIX@_SOURCES = test/Fortran/test_invert_trm_complex.F90
elpa1_complex_invert_trm@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_invert_trm@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_invert_trm@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

345
elpa1_test_real_with_c@SUFFIX@_SOURCES = test/Fortran/test_real_with_c.F90
Andreas Marek's avatar
Andreas Marek committed
346
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)
347
elpa1_test_real_with_c@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
348
EXTRA_elpa1_test_real_with_c@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
349

350
elpa2_test_real@SUFFIX@_SOURCES = test/Fortran/test_real2.F90
351
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
352
elpa2_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
353
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
354

355
356
357
358
elpa2_test_real_default@SUFFIX@_SOURCES = test/Fortran/test_real2_default.F90
elpa2_test_real_default@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_default@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_default@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
359

360

361
362
363
364
elpa2_test_real_qr@SUFFIX@_SOURCES = test/Fortran/test_real2_qr.F90
elpa2_test_real_qr@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_qr@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_qr@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
365

366
367
368
elpa2_test_real_api@SUFFIX@_SOURCES = test/Fortran/test_real2_api.F90
elpa2_test_real_api@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_api@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
Andreas Marek's avatar
Typo    
Andreas Marek committed
369
EXTRA_elpa2_test_real_api@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
370

371
elpa1_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex.F90
372
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
373
elpa1_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
374
EXTRA_elpa1_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
375

376

377
elpa2_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex2.F90
378
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
379
elpa2_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
380
EXTRA_elpa2_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
381

382
383
384
385
elpa2_test_complex_default@SUFFIX@_SOURCES = test/Fortran/test_complex2_default.F90
elpa2_test_complex_default@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_default@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_default@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
386

387
388
389
390
elpa2_test_complex_api@SUFFIX@_SOURCES = test/Fortran/test_complex2_api.F90
elpa2_test_complex_api@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_api@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_api@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
391

392
393
394
395
396
elpa_driver_real@SUFFIX@_SOURCES = test/Fortran/test_driver_real.F90
elpa_driver_real@SUFFIX@_LDADD = $(build_lib)
elpa_driver_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa_driver_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

397
398
399
400
401
elpa_driver_complex@SUFFIX@_SOURCES = test/Fortran/test_driver_complex.F90
elpa_driver_complex@SUFFIX@_LDADD = $(build_lib)
elpa_driver_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa_driver_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

402
elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2_print_kernels.F90
403
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
404
elpa2_print_kernels@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
Andreas Marek's avatar
Andreas Marek committed
405

406
check_SCRIPTS = \
407
408
409
  elpa1_test_real@SUFFIX@.sh \
  elpa1_test_real_with_c@SUFFIX@.sh \
  elpa2_test_real@SUFFIX@.sh \
410
  elpa2_test_real_default@SUFFIX@.sh \
411
412
  elpa1_test_complex@SUFFIX@.sh \
  elpa2_test_complex@SUFFIX@.sh \
413
414
415
416
  elpa2_test_real_qr@SUFFIX@.sh \
  elpa2_test_complex_default@SUFFIX@.sh \
  elpa2_test_real_api@SUFFIX@.sh \
  elpa2_test_complex_api@SUFFIX@.sh \
417
  elpa_driver_real@SUFFIX@.sh \
418
  elpa_driver_complex@SUFFIX@.sh \
419
  elpa1_real_toeplitz@SUFFIX@.sh \
420
  elpa1_real_transpose_multiply@SUFFIX@.sh \
421
  elpa1_complex_transpose_multiply@SUFFIX@.sh \
422
  elpa1_real_cholesky@SUFFIX@.sh \
423
  elpa1_real_invert_trm@SUFFIX@.sh \
424
  elpa1_complex_cholesky@SUFFIX@.sh \
425
  elpa1_complex_invert_trm@SUFFIX@.sh \
426
  elpa2_print_kernels@SUFFIX@ \
427
428
429
  elpa1_test_real_c_version@SUFFIX@.sh \
  elpa1_test_complex_c_version@SUFFIX@.sh \
  elpa2_test_real_c_version@SUFFIX@.sh \
430
  elpa2_test_complex_c_version@SUFFIX@.sh \
431
  elpa_driver_real_c_version@SUFFIX@.sh \
432
  elpa_driver_complex_c_version@SUFFIX@.sh
433

Andreas Marek's avatar
Andreas Marek committed
434

435
# test scripts
436
MPIEXEC ?= $(MPI_BINARY) -n 2
437
if WITH_MPI
438
  wrapper=$(MPIEXEC)
439
else
440
  wrapper=
441
442
443
endif
TESTS = $(check_SCRIPTS)
%.sh: %
444
445
	@echo $(wrapper) ./$^ '$$TEST_FLAGS' > $@
	@chmod +x $@
Andreas Marek's avatar
Andreas Marek committed
446

447
# Preprocessed files (just used for manual inspection)
Andreas Marek's avatar
Andreas Marek committed
448
449
450
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
451
452
elpa2.i: $(top_srcdir)/src/elpa2.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2.F90 -o $@
453

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

457
458
459
elpa2_kernels_real.i: $(top_srcdir)/src/elpa2_kernels/elpa2_kernels_real.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2_kernels/elpa2_kernels_real.F90 -o $@

460
461
462
mod_compute_hh_trafo_real.i: $(top_srcdir)/src/mod_compute_hh_trafo_real.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/mod_compute_hh_trafo_real.F90 -o $@

463
464
465
466
mod_compute_hh_trafo_complex.i: $(top_srcdir)/src/mod_compute_hh_trafo_complex.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/mod_compute_hh_trafo_complex.F90 -o $@


467
468
include doxygen.am

469
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
470
  elpa-generated.h \
471
472
  elpa1_test* \
  elpa2_test*\
Andreas Marek's avatar
Andreas Marek committed
473
474
  elpa2_real* \
  elpa1_real* \
Andreas Marek's avatar
Andreas Marek committed
475
  *.sh \
476
  *.i
477
478

clean-local:
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
479
	-rm -rf modules/* private_modules/* .fortran_dependencies/*
480
	-rm -rf $(generated_headers)
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
481
482
483

distclean-local:
	-rm config-f90.h
484
485
486
	-rm -rf ./src/elpa2_kernels/.deps
	-rm -rf ./src/.deps
	-rm -rf ./test/.deps
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
487
	-rmdir ./src/elpa2_kernels/
488
489
	-rmdir ./src
	-rmdir ./test
490
	-rmdir ./m4
491
	-rmdir modules/
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
492
	-rmdir .fortran_dependencies/
493

494
495
496
EXTRA_DIST = \
  fdep/fortran_dependencies.pl \
  fdep/fortran_dependencies.mk \
497
  test/Fortran/elpa_print_headers.X90 \
498
499
  src/elpa_reduce_add_vectors.X90 \
  src/elpa_transpose_vectors.X90 \
500
  src/redist_band.X90 \
501
502
503
504
505
506
  test_project/Makefile.am \
  test_project/autogen.sh \
  test_project/configure.ac \
  test_project/fdep \
  test_project/src/test_real.F90 \
  test_project/m4 \
507
  elpa.spec
508

509
510
511
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
512

513

514
@FORTRAN_MODULE_DEPS@
515
516
517
518
519

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

520
# $1  Object name
521
define require_elpa_lib
522
$1: libelpa@SUFFIX@.la
523
524

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