1# -*- Mode: Makefile; -*-
2# vim: set ft=automake :
3#
4# (C) 2011 by Argonne National Laboratory.
5#     See COPYRIGHT in top-level directory.
6#
7
8# these CPPFLAGS are only used when building C/C++ source files, not for actual
9# F90 code itself
10AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
11
12LDADD = $(top_builddir)/f90/util/mtestf90.o
13
14# This is right for many platforms, but not all.  The right fix involves a
15# configure test, but this version is no worse than the simplemake version was.
16AM_FFLAGS = -I.
17
18$(top_builddir)/f90/util/mtestf90.o: $(top_srcdir)/f90/util/mtestf90.f90
19	(cd $(top_builddir)/f90/util && $(MAKE) mtestf90.o)
20
21
22testing:
23	$(top_builddir)/runtests -srcdir=$(srcdir) -tests=testlist \
24		-mpiexec=${MPIEXEC} -xmlfile=summary.xml
25
26CLEANFILES = summary.xml
27