summaryrefslogtreecommitdiff
path: root/src/test/Makefile.am
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-11-17 20:29:02 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-11-18 07:08:19 -0500
commit814a7243680857496595c21a05b8bb6242664d8e (patch)
treec4f289c8d5165777c686b4ba36470b6b1958e254 /src/test/Makefile.am
parent7730dfb5e1fc7e2f8b1df0eb9ef62c451a5f725f (diff)
Got helper in src/* and make distcheck working
Diffstat (limited to 'src/test/Makefile.am')
-rw-r--r--src/test/Makefile.am22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 3c6095ee88..ff45517cdf 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -1,5 +1,11 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+AM_CPPFLAGS = \
+ -DVERSION \
+ -DCLONE_NEWNS \
+ -I $(top_srcdir)/src/libudev \
+ -I $(top_srcdir)/src/udev
+
noinst_PROGRAMS = \
test-libudev \
test-udev
@@ -8,17 +14,21 @@ test_libudev_SOURCES = \
test-libudev.c
test_libudev_LDADD = \
- $(top_srcdir)/src/libudev/libudev.la
+ $(top_builddir)/src/libudev/libudev-private.la \
+ $(top_builddir)/src/udev/libudev-core.la
test_libudev_CPPFLAGS = \
- -I $(top_srcdir)/src/libudev
+ -I $(top_srcdir)/src/libudev \
+ $(AM_CPPFLAGS)
test_udev_SOURCES = \
test-udev.c
-test_udev_CPPFLAGS = \
- -I $(top_srcdir)/src/udev
-
test_udev_LDADD = \
- $(top_srcdir)/src/udev/libudev-core.la \
+ $(top_builddir)/src/libudev/libudev-private.la \
+ $(top_builddir)/src/udev/libudev-core.la \
$(SELINUX_LIBS)
+
+test_udev_CPPFLAGS = \
+ -I $(top_srcdir)/src/udev \
+ $(AM_CPPFLAGS)