Makefile.am 15.1 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
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
libelpa@SUFFIX@_la_SOURCES = \
        src/mod_precision.f90 \
        src/mod_mpi.F90 \
        src/mod_mpi_stubs.F90 \
        src/elpa2_kernels/mod_fortran_interfaces.F90 \
        src/elpa_utilities.F90 \
        src/elpa1_compute.F90 \
        src/elpa1.F90 \
        src/elpa2_utilities.F90 \
        src/mod_pack_unpack_real.F90 \
        src/elpa2_kernels/mod_single_hh_trafo_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 \
        src/elpa2_compute.F90 \
        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

EXTRA_libelpa@SUFFIX@_la_DEPENDENCIES = \
        src/elpa_reduce_add_vectors.X90 \
        src/elpa_transpose_vectors.X90 \
        src/redist_band.X90
39

40
if HAVE_DETAILED_TIMINGS
41
42
43
44
45
46
47
48
49
50
  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
51
52
endif

53
54
55
56
57
58
59
if !WITH_MPI
  libelpa@SUFFIX@_la_SOURCES += src/mod_time_c.F90
if !HAVE_DETAILED_TIMINGS
  libelpa@SUFFIX@_la_SOURCES += src/ftimings/time.c
endif
endif

Andreas Marek's avatar
Andreas Marek committed
60
if WITH_REAL_GENERIC_KERNEL
61
  libelpa@SUFFIX@_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_real.F90
62
63
endif

Andreas Marek's avatar
Andreas Marek committed
64
if WITH_COMPLEX_GENERIC_KERNEL
65
  libelpa@SUFFIX@_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_complex.F90
66
67
endif

Andreas Marek's avatar
Andreas Marek committed
68
if WITH_REAL_GENERIC_SIMPLE_KERNEL
69
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_simple.F90
70
71
endif

Andreas Marek's avatar
Andreas Marek committed
72
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
73
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_simple.F90
74
75
endif

Andreas Marek's avatar
Andreas Marek committed
76
if WITH_REAL_BGP_KERNEL
77
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgp.f90
78
79
endif

Andreas Marek's avatar
Andreas Marek committed
80
if WITH_REAL_BGQ_KERNEL
81
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgq.f90
82
83
endif

84
if WITH_REAL_SSE_ASSEMBLY_KERNEL
85
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64.s
Andreas Marek's avatar
Andreas Marek committed
86
else
87
if WITH_COMPLEX_SSE_ASSEMBLY_KERNEL
88
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64.s
89
90
endif
endif
Andreas Marek's avatar
Andreas Marek committed
91

92
93
94
95
if WITH_REAL_SSE_BLOCK2_KERNEL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_2hv.c
endif

Andreas Marek's avatar
Andreas Marek committed
96
if WITH_REAL_AVX_BLOCK2_KERNEL
97
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv.c
98
99
endif

100
101
102
103
if WITH_REAL_SSE_BLOCK4_KERNEL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv.c
endif

Andreas Marek's avatar
Andreas Marek committed
104
if WITH_REAL_AVX_BLOCK4_KERNEL
105
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv.c
106
107
endif

108
109
110
111
if WITH_REAL_SSE_BLOCK6_KERNEL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv.c
endif

Andreas Marek's avatar
Andreas Marek committed
112
if WITH_REAL_AVX_BLOCK6_KERNEL
113
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv.c
114
115
endif

116
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
117
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv.c
118
119
endif

Andreas Marek's avatar
Andreas Marek committed
120
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
121
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv.c
122
123
endif

124
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
125
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv.c
126
127
endif

Andreas Marek's avatar
Andreas Marek committed
128
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
129
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv.c
130
131
endif

132
133
134
include generated_headers.am
BUILT_SOURCES = $(generated_headers)

135
# install any .mod files in the include/ dir
136
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
137
nobase_elpa_include_HEADERS = $(wildcard modules/*)
Andreas Marek's avatar
Andreas Marek committed
138
nobase_elpa_include_HEADERS += elpa/elpa.h elpa/elpa_kernel_constants.h elpa/elpa_generated.h
139

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
140
141
dist_man_MANS = \
	   man/solve_evp_real.3 \
142
	   man/solve_evp_real_1stage.3 \
Andreas Marek's avatar
Andreas Marek committed
143
	   man/solve_evp_complex.3 \
144
	   man/solve_evp_complex_1stage.3 \
Andreas Marek's avatar
Andreas Marek committed
145
146
147
	   man/solve_evp_real_2stage.3 \
	   man/solve_evp_complex_2stage.3 \
	   man/get_elpa_row_col_comms.3 \
148
	   man/get_elpa_communicators.3 \
149
	   man/elpa2_print_kernels.1
Andreas Marek's avatar
Andreas Marek committed
150

151
# other files to distribute
152
filesdir = $(docdir)/examples
153
dist_files_DATA = \
Andreas Marek's avatar
Andreas Marek committed
154
155
156
157
158
159
160
161
162
163
164
  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 \
165
  src/elpa2_print_kernels.F90
166

167
dist_doc_DATA = README.md USERS_GUIDE.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
168

169
170
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
171
pkgconfig_DATA = @PKG_CONFIG_FILE@
172

173
174
# programs
bin_PROGRAMS = \
175
176
177
  elpa2_print_kernels@SUFFIX@

noinst_PROGRAMS = \
178
179
180
181
182
  elpa1_test_real@SUFFIX@ \
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
  elpa2_test_complex@SUFFIX@ \
  elpa2_test_real_default_kernel@SUFFIX@ \
183
  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@ \
184
185
  elpa2_test_complex_default_kernel@SUFFIX@ \
  elpa2_test_real_choose_kernel_with_api@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
186
  elpa2_test_complex_choose_kernel_with_api@SUFFIX@ \
187
188
189
  elpa1_test_real_with_c@SUFFIX@
if !WITH_OPENMP
noinst_PROGRAMS += \
190
  elpa1_test_real_c_version@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
191
192
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
193
194
  elpa2_test_complex_c_version@SUFFIX@
endif
195

196
build_lib = libelpa@SUFFIX@.la
Andreas Marek's avatar
Andreas Marek committed
197

198
if HAVE_REDIRECT
Andreas Marek's avatar
Andreas Marek committed
199
  redirect_sources = test/shared_sources/redir.c test/shared_sources/redirect.F90
200
201
202
203
else
  redirect_sources =
endif

204
205
206
207
208
209
#test/shared_sources/mod_precision_created.f90: src/mod_precision.f90
#	cp $(top_srcdir)/src/mod_precision.f90 $(top_srcdir)/test/shared_sources/mod_precision_created.f90

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 \
210
		 test/shared_sources/mod_output_types.F90
211
if !WITH_OPENMP
Andreas Marek's avatar
Andreas Marek committed
212
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
213
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib)
214
elpa1_test_real_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)
215
EXTRA_elpa1_test_real_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
216

Andreas Marek's avatar
Andreas Marek committed
217
218
219
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)
220
EXTRA_elpa1_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
221
222
223
224

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)
225
EXTRA_elpa2_test_real_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
226
227
228
229

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)
230
EXTRA_elpa2_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
231
endif
Andreas Marek's avatar
Andreas Marek committed
232
233

elpa1_test_real@SUFFIX@_SOURCES = test/fortran_test_programs/test_real.F90 $(shared_sources) $(redirect_sources)
234
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
Lorenz Huedepohl's avatar
Typo  
Lorenz Huedepohl committed
235
EXTRA_elpa1_test_real@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
236

237
238
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
239
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)
240
EXTRA_elpa1_test_real_with_c@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
241

242
243
#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)
244
#EXTRA_elpa1_test_complex_with_c@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
245
246

elpa2_test_real@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2.F90 $(shared_sources) $(redirect_sources)
247
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
248
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
249

Andreas Marek's avatar
Andreas Marek committed
250
elpa2_test_real_default_kernel@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel.F90 $(shared_sources) $(redirect_sources)
251
elpa2_test_real_default_kernel@SUFFIX@_LDADD = $(build_lib)
252
EXTRA_elpa2_test_real_default_kernel@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
253

254

255
256
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel_qr_decomposition.F90 \
								   $(shared_sources) $(redirect_sources)
257
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_LDADD = $(build_lib)
258
EXTRA_elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
259

260
261
elpa2_test_real_choose_kernel_with_api@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_choose_kernel_with_api.F90 \
							 $(shared_sources) $(redirect_sources)
262
elpa2_test_real_choose_kernel_with_api@SUFFIX@_LDADD = $(build_lib)
263
EXTRA_elpa2_test_real_choose_kernel_with_api@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
264

Andreas Marek's avatar
Andreas Marek committed
265
elpa1_test_complex@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex.F90 $(shared_sources) $(redirect_sources)
266
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
267
EXTRA_elpa1_test_complex@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
268

269

270
elpa2_test_complex@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2.F90 $(shared_sources) $(redirect_sources)
271
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
272
EXTRA_elpa2_test_complex@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
273

Andreas Marek's avatar
Andreas Marek committed
274
elpa2_test_complex_default_kernel@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_default_kernel.F90 $(shared_sources) $(redirect_sources)
275
elpa2_test_complex_default_kernel@SUFFIX@_LDADD = $(build_lib)
276
EXTRA_elpa2_test_complex_default_kernel@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
277

278
279
elpa2_test_complex_choose_kernel_with_api@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_choose_kernel_with_api.F90 \
							    $(shared_sources) $(redirect_sources)
280
elpa2_test_complex_choose_kernel_with_api@SUFFIX@_LDADD = $(build_lib)
281
EXTRA_elpa2_test_complex_choose_kernel_with_api@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
282

283
elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2_print_kernels.F90 $(shared_sources) $(redirect_sources)
284
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
285

286
check_SCRIPTS = \
287
288
289
290
291
292
293
294
295
296
  elpa1_test_real@SUFFIX@.sh \
  elpa1_test_real_with_c@SUFFIX@.sh \
  elpa2_test_real@SUFFIX@.sh \
  elpa2_test_real_default_kernel@SUFFIX@.sh \
  elpa1_test_complex@SUFFIX@.sh \
  elpa2_test_complex@SUFFIX@.sh \
  elpa2_test_complex_default_kernel@SUFFIX@.sh \
  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh \
  elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh \
  elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh \
297
  elpa2_print_kernels@SUFFIX@
298

299
300
if !WITH_OPENMP
check_SCRIPTS += \
301
302
303
304
  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
305
endif
306

Andreas Marek's avatar
Andreas Marek committed
307

308
309
310
311
312
313
314
315
316
317
# test scripts
if WITH_MPI
  wrapper="mpiexec -n 2 "
else
  wrapper=""
endif
TESTS = $(check_SCRIPTS)
%.sh: %
	echo '$(wrapper)./$^ $$TEST_FLAGS' > $@
	chmod +x $@
Andreas Marek's avatar
Andreas Marek committed
318

319
320
321
322
# this one does not want any arguments
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh: 
	echo '$(wrapper)./elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@' > $@
	chmod +x $@
Andreas Marek's avatar
Andreas Marek committed
323
324


325
# Preprocessed files (just used for manual inspection)
Andreas Marek's avatar
Andreas Marek committed
326
327
328
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
329
330
elpa2.i: $(top_srcdir)/src/elpa2.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2.F90 -o $@
331

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

335
336
337
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 $@

338
339
340
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 $@

341
342
343
344
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 $@


345
346
include doxygen.am

347
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
348
  elpa-generated.h \
349
350
  elpa1_test* \
  elpa2_test*\
351
  *.i
352
353

clean-local:
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
354
	-rm -rf modules/* .fortran_dependencies/*
355
	-rm -rf $(generated_headers)
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
356
357
358

distclean-local:
	-rm config-f90.h
359
360
361
	-rm -rf ./src/elpa2_kernels/.deps
	-rm -rf ./src/.deps
	-rm -rf ./test/.deps
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
362
	-rmdir ./src/elpa2_kernels/
363
364
	-rmdir ./src
	-rmdir ./test
365
	-rmdir ./m4
366
	-rmdir modules/
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
367
	-rmdir .fortran_dependencies/
368

369
370
371
EXTRA_DIST = \
  fdep/fortran_dependencies.pl \
  fdep/fortran_dependencies.mk \
372
  test/fortran_test_programs/elpa_test_programs_print_headers.X90 \
373
374
  src/elpa_reduce_add_vectors.X90 \
  src/elpa_transpose_vectors.X90 \
375
376
  src/redist_band.X90 \
  elpa.spec
377

378
379
380
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
381

382

383
@FORTRAN_MODULE_DEPS@
384
385
386
387
388

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

389
# $1  Object name
390
define require_elpa_lib
391
$1: libelpa@SUFFIX@.la
392
393

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