mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-19 13:34:37 -04:00
Use $(top_builddir) to reference a built .la
The build directory may be different from the source directory.
This commit is contained in:
committed by
Alan Ott
parent
1a4bbbc01a
commit
6c9d6ec0fd
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user