From 814a7243680857496595c21a05b8bb6242664d8e Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 17 Nov 2012 20:29:02 -0500 Subject: Got helper in src/* and make distcheck working --- src/test/Makefile.am | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/test/Makefile.am') 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) -- cgit v1.2.3-54-g00ecf