From 6c9d6ec0fd421be110dad249e4bcff2d4734aabd Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Wed, 4 Jul 2012 09:52:50 +0200 Subject: [PATCH] Use $(top_builddir) to reference a built .la The build directory may be different from the source directory. --- hidtest/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hidtest/Makefile.am b/hidtest/Makefile.am index a4c1f76..364efe1 100644 --- a/hidtest/Makefile.am +++ b/hidtest/Makefile.am @@ -1,4 +1,3 @@ - AM_CPPFLAGS = -I$(srcdir)/../hidapi/ ## Linux @@ -6,16 +5,16 @@ if OS_LINUX noinst_PROGRAMS = hidtest-libusb hidtest-hidraw hidtest_hidraw_SOURCES = hidtest.cpp -hidtest_hidraw_LDADD = $(srcdir)/../linux/libhidapi-hidraw.la +hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la hidtest_libusb_SOURCES = hidtest.cpp -hidtest_libusb_LDADD = $(srcdir)/../libusb/libhidapi-libusb.la +hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la else # Other OS's noinst_PROGRAMS = hidtest hidtest_SOURCES = hidtest.cpp -hidtest_LDADD = $(srcdir)/../$(backend)/libhidapi.la +hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la endif