Makefile.am 1.94 KB
Newer Older
1 2 3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4

AM_FCFLAGS = @AM_FCFLAGS@ @FC_MODINC@modules @FC_MODOUT@modules 
4

5 6 7 8 9
AM_LDFLAGS = @AM_LDFLAGS@ @BLACS_LDFLAGS@

BLACS_LDFLAGS = @BLACS_LDFLAGS@

# libelpa
10
lib_LTLIBRARIES = libelpa.la
11

12
libelpa_la_SOURCES = src/elpa1.f90 src/elpa2.f90
13 14

if WITH_BGP
15
  libelpa_la_SOURCES += src/elpa2_kernels_bg.f90
16
else
17
  libelpa_la_SOURCES += src/elpa2_kernels.f90
18
endif
19
libelpa_la_LDFLAGS = -version-info $(ELPA_SO_VERSION)
20 21

# install any .mod files in the include/ dir
22
elpa_includedir = $(includedir)/elpa
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
nobase_elpa_include_HEADERS = $(wildcard modules/*)

# other files to distribute
filesdir = $(datarootdir)
files_DATA = \
	test/read_real.f90 \
	test/read_real_gen.f90 \
	test/test_complex2.f90 \
	test/test_complex.f90 \
	test/test_complex_gen.f90 \
	test/test_real2.f90 \
	test/test_real.f90 \
	test/test_real_gen.f90

# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
39
pkgconfig_DATA = elpa.pc
40 41 42 43 44 45

# test programs
noinst_bindir = $(abs_top_builddir)
noinst_bin_PROGRAMS = test_real test_real2 test_complex test_complex2

test_real_SOURCES = test/test_real.f90
46
test_real_LDADD = libelpa.la 
47 48

test_real2_SOURCES = test/test_real2.f90
49
test_real2_LDADD = libelpa.la 
50 51

test_complex_SOURCES = test/test_complex.f90
52
test_complex_LDADD = libelpa.la
53 54

test_complex2_SOURCES = test/test_complex2.f90
55
test_complex2_LDADD = libelpa.la
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78


check_SCRIPTS = test_real.sh test_real2.sh test_complex.sh test_complex2.sh   
TESTS = $(check_SCRIPTS)

test_real.sh:
	echo "mpiexec -n 2 ./test_real > /dev/null 2>&1" > test_real.sh
	chmod +x test_real.sh	

test_real2.sh:
	echo "mpiexec -n 2 ./test_real2 > /dev/null 2>&1" > test_real2.sh
	chmod +x test_real2.sh	

test_complex.sh:
	echo "mpiexec -n 2 ./test_complex > /dev/null 2>&1" > test_complex.sh
	chmod +x test_complex.sh	

test_complex2.sh:
	echo "mpiexec -n 2 ./test_complex2 > /dev/null 2>&1" > test_complex2.sh
	chmod +x test_complex2.sh	


CLEANFILES = test_real.sh test_real2.sh test_complex.sh test_complex2.sh