noinst_LTLIBRARIES = libfs.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-ssl-iostream \
-DMODULE_DIR=\""$(moduledir)"\"
libfs_la_SOURCES = \
fs-api.c \
fs-sis.c \
headers = \
fs-api.h \
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
noinst_PROGRAMS = $(test_programs)
test_programs = \
test-fs-metawrap \
test-fs-posix
test_deps = \
$(noinst_LTLIBRARIES) \
test_libs = \
$(test_deps) \
$(MODULE_LIBS)
test_fs_metawrap_SOURCES = test-fs-metawrap.c
test_fs_metawrap_LDADD = $(test_libs)
test_fs_metawrap_DEPENDENCIES = $(test_deps)
test_fs_posix_SOURCES = test-fs-posix.c
test_fs_posix_LDADD = $(test_libs)
test_fs_posix_DEPENDENCIES = $(test_deps)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done