summaryrefslogtreecommitdiff
path: root/Makefile-libglnx.am
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2019-11-04 22:17:58 +0000
committerColin Walters <walters@verbum.org>2019-11-04 22:22:16 +0000
commit1503eaaac30edce9e6548170095813cb3e52acf5 (patch)
tree742050f4d5a08136cb7cb8443a64b9cc3f21f589 /Makefile-libglnx.am
parent23f43faeab478573497ab609affff5733f33a25f (diff)
downloadlibglnx-1503eaaac30edce9e6548170095813cb3e52acf5.tar.gz
build-sys: Add libglnx-testlib.c to Automake
It was introduced in a previous commit but only added to `meson.build`.
Diffstat (limited to 'Makefile-libglnx.am')
-rw-r--r--Makefile-libglnx.am12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile-libglnx.am b/Makefile-libglnx.am
index 158063c..957eae9 100644
--- a/Makefile-libglnx.am
+++ b/Makefile-libglnx.am
@@ -56,23 +56,25 @@ libglnx_la_LIBADD = $(libglnx_libs)
libglnx_tests = test-libglnx-xattrs test-libglnx-fdio test-libglnx-errors test-libglnx-macros test-libglnx-shutil
TESTS += $(libglnx_tests)
+libglnx_testlib_sources = $(libglnx_srcpath)/tests/libglnx-testlib.c
+
check_PROGRAMS += $(libglnx_tests)
-test_libglnx_xattrs_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-xattrs.c
+test_libglnx_xattrs_SOURCES = $(libglnx_testlib_sources) $(libglnx_srcpath)/tests/test-libglnx-xattrs.c
test_libglnx_xattrs_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_xattrs_LDADD = $(libglnx_libs) libglnx.la
-test_libglnx_fdio_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-fdio.c
+test_libglnx_fdio_SOURCES = $(libglnx_testlib_sources) $(libglnx_srcpath)/tests/test-libglnx-fdio.c
test_libglnx_fdio_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_fdio_LDADD = $(libglnx_libs) libglnx.la
-test_libglnx_errors_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-errors.c
+test_libglnx_errors_SOURCES = $(libglnx_testlib_sources) $(libglnx_srcpath)/tests/test-libglnx-errors.c
test_libglnx_errors_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_errors_LDADD = $(libglnx_libs) libglnx.la
-test_libglnx_macros_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-macros.c
+test_libglnx_macros_SOURCES = $(libglnx_testlib_sources) $(libglnx_srcpath)/tests/test-libglnx-macros.c
test_libglnx_macros_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_macros_LDADD = $(libglnx_libs) libglnx.la
-test_libglnx_shutil_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-shutil.c
+test_libglnx_shutil_SOURCES = $(libglnx_testlib_sources) $(libglnx_srcpath)/tests/test-libglnx-shutil.c
test_libglnx_shutil_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_shutil_LDADD = $(libglnx_libs) libglnx.la