File: Makefile.am

package info (click to toggle)
mpb 1.11.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,856 kB
  • sloc: ansic: 13,270; javascript: 9,901; makefile: 212; lisp: 44; sh: 4
file content (46 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
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
39
40
41
42
43
44
45
46
noinst_PROGRAMS = malloctest blastest eigs_test maxwell_test
if WITH_LIBCTLGEOM
noinst_PROGRAMS += normal_vectors
endif
EXTRA_DIST = blastest.real.out blastest.complex.out

LIBMPB = $(top_builddir)/src/libmpb@MPB_SUFFIX@.la
AM_CPPFLAGS = -I$(top_srcdir)/src/util -I$(top_srcdir)/src/matrices -I$(top_srcdir)/src/maxwell

malloctest_SOURCES = malloctest.c
malloctest_LDADD = $(LIBMPB)

blastest_SOURCES = blastest.c
blastest_LDADD = $(LIBMPB)

eigs_test_SOURCES = eigs_test.c
eigs_test_LDADD = $(LIBMPB)

maxwell_test_SOURCES = maxwell_test.c
maxwell_test_LDADD = $(LIBMPB)

normal_vectors_SOURCES = normal_vectors.c
normal_vectors_LDADD = -lctlgeom $(LIBMPB)
normal_vectors_CPPFLAGS = $(CTLGEOM_H_CPPFLAG) $(AM_CPPFLAGS)

blastest.out: blastest
	./blastest | sed 's/\-0\.000\([ ,)]\)/ 0.000\1/g' | sed 's/\-0\.000$$/ 0.000/g' > $@
	diff $(srcdir)/blastest.@SCALAR_TYPE@.out $@

maxwell_test.out: maxwell_test
	./maxwell_test -1 -c 1e-9 -x 256 -E 1e-3 > $@

maxwell_test_2.out: maxwell_test
	./maxwell_test -1 -c 1e-9 -x 256 -E 1e-3 -e -k 0.4 -n 1 > $@

if !MPI
MAXWELL_TEST_OUT=maxwell_test.out maxwell_test_2.out
endif

check-local: blastest.out $(MAXWELL_TEST_OUT)
	@echo "**********************************************************"
	@echo "                       PASSED tests."
	@echo "**********************************************************"

clean-local:
	rm -f blastest.out $(MAXWELL_TEST_OUT)