Skip to content

Commit

Permalink
now move pio_tutil to tests/general dir during configure
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 26, 2019
1 parent 5ed762b commit 956f28f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ AC_CONFIG_FILES(tests/general/pio_iosystem_tests.F90:tests/general/pio_iosystem_
AC_CONFIG_FILES(tests/general/pio_rearr.F90:tests/general/pio_rearr.F90.in2)
AC_CONFIG_FILES(tests/general/pio_rearr_opts2.F90:tests/general/pio_rearr_opts2.F90.in2)
AC_CONFIG_FILES(tests/general/pio_rearr_opts.F90:tests/general/pio_rearr_opts.F90.in2)
AC_CONFIG_FILES(tests/general/pio_tutil.F90:tests/general/util/pio_tutil.F90)

# Create the config.h file.
AC_CONFIG_HEADERS([config.h])
Expand Down
20 changes: 13 additions & 7 deletions tests/general/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,28 @@
# Put together AM_CPPFLAGS and AM_LDFLAGS.
include $(top_srcdir)/set_flags.am

LDADD = util/libpio_tutil.la \
LDADD = libpio_tutil.la \
${top_builddir}/src/flib/libpiof.la \
${top_builddir}/src/clib/libpio.la

AM_CPPFLAGS += -I${top_builddir}/tests/general/util

# There is a test utility mod file in this subdir which must be built.
SRCDIRS = util .
#SRCDIRS = util

# Build this uninstalled convenience library.
noinst_LTLIBRARIES = libpio_rearr_opts.la
# Build these uninstalled convenience libraries.
noinst_LTLIBRARIES = libpio_tutil.la libpio_rearr_opts.la

# The convenience libraries depends on their source.
libpio_tutil_la_SOURCES = pio_tutil.F90 # configure copies this from util dir.
libpio_rearr_opts_la_SOURCES = pio_rearr_opts.F90

# Each mod file depends on the .o file.
pio_tutil.mod: pio_tutil.$(OBJEXT)
pio_rearr_opts_tgv.mod: pio_rearr_opts.$(OBJEXT)
BUILT_SOURCES = pio_rearr_opts_tgv.mod

# Some mods are dependant on other mods in this dir.
pio_rearr_opts.$(OBJEXT): pio_tutil.mod

BUILT_SOURCES = pio_tutil.mod pio_rearr_opts_tgv.mod

# Build the test for make check.
check_PROGRAMS = pio_init_finalize pio_file_simple_tests \
Expand Down

0 comments on commit 956f28f

Please sign in to comment.