Makefile.am 18.7 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
14
15
libelpa@SUFFIX@_public_la_SOURCES = \
        src/elpa1.F90 \
        src/elpa2.F90 \
16
	src/elpa1_auxiliary.F90 \
17
        src/elpa2_utilities.F90 \
18
19
        src/elpa_utilities.F90  \
	src/mod_precision.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
26
27
28
29
30
31
        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 \
32
        src/elpa1_compute_private.F90 \
33
        src/elpa2_compute.F90 \
34
35
        src/elpa2_kernels/mod_fortran_interfaces.F90 \
        src/elpa2_kernels/mod_single_hh_trafo_real.F90 \
36
37
38
39
40
41
        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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

187
# other files to distribute
188
filesdir = $(docdir)/examples
189
dist_files_DATA = \
190
191
  test/Fortran/read_real.F90 \
  test/Fortran/test_complex2.F90 \
192
  test/Fortran/test_complex2_default.F90 \
193
194
195
  test/Fortran/test_complex2_api.F90 \
  test/Fortran/test_complex.F90 \
  test/Fortran/test_real2.F90 \
196
  test/Fortran/test_real2_default.F90 \
197
198
199
200
201
  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 \
202
  test/Fortran/test_transpose_multiply_real.F90 \
203
  test/Fortran/test_transpose_multiply_complex.F90 \
204
  test/Fortran/test_cholesky_real.F90 \
205
  test/Fortran/test_invert_trm_real.F90 \
206
  test/Fortran/test_cholesky_complex.F90 \
207
  test/Fortran/test_invert_trm_complex.F90 \
208
  src/elpa2_print_kernels.F90
209

210
dist_doc_DATA = README.md USERS_GUIDE.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
211

212
213
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
214
pkgconfig_DATA = @PKG_CONFIG_FILE@
215

216
217
# programs
bin_PROGRAMS = \
218
219
220
  elpa2_print_kernels@SUFFIX@

noinst_PROGRAMS = \
221
222
223
224
  elpa1_test_real@SUFFIX@ \
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
  elpa2_test_complex@SUFFIX@ \
225
226
227
228
229
230
  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@ \
  elpa1_real_toeplitz@SUFFIX@ \
231
  elpa1_real_transpose_multiply@SUFFIX@ \
232
  elpa1_complex_transpose_multiply@SUFFIX@ \
233
  elpa1_real_cholesky@SUFFIX@ \
234
  elpa1_real_invert_trm@SUFFIX@ \
235
  elpa1_complex_cholesky@SUFFIX@ \
236
  elpa1_complex_invert_trm@SUFFIX@ \
237
  elpa1_test_real_with_c@SUFFIX@ \
238
  elpa1_test_real_c_version@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
239
240
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
241
  elpa2_test_complex_c_version@SUFFIX@
242

243

Andreas Marek's avatar
Andreas Marek committed
244
build_lib = libelpatest@SUFFIX@.la libelpa@SUFFIX@.la
245
246
247
248
249

# 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 = \
250
251
252
253
254
255
256
257
258
	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
259

260
if HAVE_REDIRECT
261
libelpatest@SUFFIX@_la_SOURCES += \
262
263
	test/shared/redir.c \
	test/shared/redirect.F90
264
265
endif

266
elpa1_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_real_c_version.c
267
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
268
elpa1_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
269
EXTRA_elpa1_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
270

271
elpa1_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_complex_c_version.c
272
elpa1_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
273
elpa1_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
274
EXTRA_elpa1_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
275

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

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

286
elpa1_test_real@SUFFIX@_SOURCES = test/Fortran/test_real.F90
287
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
288
elpa1_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
289
EXTRA_elpa1_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
290

291
292
293
294
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
295

296
297
298
299
300
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

301
302
303
304
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
305

306
307
308
309
310
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

311
312
313
314
315
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

316
317
318
319
320
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

321
322
323
324
325
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

326
elpa1_test_real_with_c@SUFFIX@_SOURCES = test/Fortran/test_real_with_c.F90
Andreas Marek's avatar
Andreas Marek committed
327
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)
328
elpa1_test_real_with_c@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
329
EXTRA_elpa1_test_real_with_c@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
330

331
elpa2_test_real@SUFFIX@_SOURCES = test/Fortran/test_real2.F90
332
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
333
elpa2_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
334
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
335

336
337
338
339
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
340

341

342
343
344
345
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
346

347
348
349
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
350
EXTRA_elpa2_test_real_api@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
351

352
elpa1_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex.F90
353
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
354
elpa1_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
355
EXTRA_elpa1_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
356

357

358
elpa2_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex2.F90
359
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
360
elpa2_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
361
EXTRA_elpa2_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
362

363
364
365
366
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
367

368
369
370
371
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
372

373
elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2_print_kernels.F90
374
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
375
elpa2_print_kernels@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
Andreas Marek's avatar
Andreas Marek committed
376

377
check_SCRIPTS = \
378
379
380
  elpa1_test_real@SUFFIX@.sh \
  elpa1_test_real_with_c@SUFFIX@.sh \
  elpa2_test_real@SUFFIX@.sh \
381
  elpa2_test_real_default@SUFFIX@.sh \
382
383
  elpa1_test_complex@SUFFIX@.sh \
  elpa2_test_complex@SUFFIX@.sh \
384
385
386
387
388
  elpa2_test_real_qr@SUFFIX@.sh \
  elpa2_test_complex_default@SUFFIX@.sh \
  elpa2_test_real_api@SUFFIX@.sh \
  elpa2_test_complex_api@SUFFIX@.sh \
  elpa1_real_toeplitz@SUFFIX@.sh \
389
  elpa1_real_transpose_multiply@SUFFIX@.sh \
390
  elpa1_complex_transpose_multiply@SUFFIX@.sh \
391
  elpa1_real_cholesky@SUFFIX@.sh \
392
  elpa1_real_invert_trm@SUFFIX@.sh \
393
  elpa1_complex_cholesky@SUFFIX@.sh \
394
  elpa1_complex_invert_trm@SUFFIX@.sh \
395
  elpa2_print_kernels@SUFFIX@ \
396
397
398
399
400
  elpa1_test_real_c_version@SUFFIX@.sh \
  elpa1_test_complex_c_version@SUFFIX@.sh \
  elpa2_test_real_c_version@SUFFIX@.sh \
  elpa2_test_complex_c_version@SUFFIX@.sh

Andreas Marek's avatar
Andreas Marek committed
401

402
# test scripts
403
MPIEXEC ?= $(MPI_BINARY) -n 2
404
if WITH_MPI
405
  wrapper=$(MPIEXEC)
406
else
407
  wrapper=
408
409
410
endif
TESTS = $(check_SCRIPTS)
%.sh: %
411
412
	@echo $(wrapper) ./$^ '$$TEST_FLAGS' > $@
	@chmod +x $@
Andreas Marek's avatar
Andreas Marek committed
413

414
# Preprocessed files (just used for manual inspection)
Andreas Marek's avatar
Andreas Marek committed
415
416
417
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
418
419
elpa2.i: $(top_srcdir)/src/elpa2.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2.F90 -o $@
420

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

424
425
426
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 $@

427
428
429
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 $@

430
431
432
433
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 $@


434
435
include doxygen.am

436
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
437
  elpa-generated.h \
438
439
  elpa1_test* \
  elpa2_test*\
Andreas Marek's avatar
Andreas Marek committed
440
441
  elpa2_real* \
  elpa1_real* \
Andreas Marek's avatar
Andreas Marek committed
442
  *.sh \
443
  *.i
444
445

clean-local:
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
446
	-rm -rf modules/* private_modules/* .fortran_dependencies/*
447
	-rm -rf $(generated_headers)
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
448
449
450

distclean-local:
	-rm config-f90.h
451
452
453
	-rm -rf ./src/elpa2_kernels/.deps
	-rm -rf ./src/.deps
	-rm -rf ./test/.deps
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
454
	-rmdir ./src/elpa2_kernels/
455
456
	-rmdir ./src
	-rmdir ./test
457
	-rmdir ./m4
458
	-rmdir modules/
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
459
	-rmdir .fortran_dependencies/
460

461
462
463
EXTRA_DIST = \
  fdep/fortran_dependencies.pl \
  fdep/fortran_dependencies.mk \
464
  test/Fortran/elpa_print_headers.X90 \
465
466
  src/elpa_reduce_add_vectors.X90 \
  src/elpa_transpose_vectors.X90 \
467
  src/redist_band.X90 \
468
469
470
471
472
473
  test_project/Makefile.am \
  test_project/autogen.sh \
  test_project/configure.ac \
  test_project/fdep \
  test_project/src/test_real.F90 \
  test_project/m4 \
474
  elpa.spec
475

476
477
478
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
479

480

481
@FORTRAN_MODULE_DEPS@
482
483
484
485
486

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

487
# $1  Object name
488
define require_elpa_lib
489
$1: libelpa@SUFFIX@.la
490
491

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