Commit bf2857e1 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Rename what was called "tests" to examples

They do not really test anything
parent 7eaaf2dd
......@@ -35,42 +35,39 @@ nobase_ftimings_include_HEADERS = ftimings.mod
ftimings_include_HEADERS = ftimings/ftimings.h ftimings/ftimings_generated.h
ftimings_libincludedir = $(libdir)/ftimings-$(FTIMINGS_API_VERSION)-$(FC)/include
./ftimings/ftimings_generated.h: $(srcdir)/ftimings/ftimings.F90
grep "^ *!c>" $(srcdir)/ftimings/ftimings.F90 | sed 's/^ *!c>//;' > ftimings/ftimings_generated.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ftimings-$(FTIMINGS_API_VERSION)-$(FC).pc
# programs
bin_PROGRAMS = ftimings_@FC@_test ftimings_c_test
bin_PROGRAMS = ftimings_@FC@_example ftimings_c_example
# test
ftimings_@FC@_test_SOURCES = \
test/test_timings.F90 \
test/do_flops.c \
test/do_memory_transfer.c
ftimings_@FC@_test_LDADD = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
ftimings_@FC@_test_LDFLAGS = -static
ftimings_c_test_SOURCES = \
test/c_test.c
ftimings_c_test_LDADD = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
ftimings_c_test_LINK = $(FCLINK) -static
ftimings_@FC@_example_SOURCES = \
examples/example.F90 \
examples/do_flops.c \
examples/do_memory_transfer.c
ftimings_@FC@_example_LDADD = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
ftimings_@FC@_example_LDFLAGS = -static
# ftimings_c_example
ftimings_c_example_SOURCES = \
examples/c_example.c
ftimings_c_example_LDADD = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
ftimings_c_example_LINK = $(FCLINK) -static
noinst_PROGRAMS = do_flops do_memory_transfer
do_flops_SOURCES = \
test/do_flops.c
examples/do_flops.c
do_flops_CPPFLAGS = -DTEST_DO_FLOPS
do_memory_transfer_SOURCES = \
test/do_memory_transfer.c
examples/do_memory_transfer.c
do_memory_transfer_CPPFLAGS = -DTEST_DO_MEMORY_TRANSFER
# other files to distribute
filesdir = $(datadir)/@PACKAGE@-@FC@/examples
files_DATA = test/test_timings.F90
files_DATA = examples/example.F90
include doxygen.am
......
......@@ -68,4 +68,7 @@ AC_CONFIG_FILES([Makefile
])
AC_OUTPUT
echo "Generating config-f90.h..."
grep "^#define" config.h > config-f90.h
echo "Generating ftimings/ftimings_generated.h..."
grep "^ *!c>" $srcdir/ftimings/ftimings.F90 | sed 's/^ *!c>//;' > ftimings/ftimings_generated.h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment