Autotools build files for hidtest example.

This commit is contained in:
Alan Ott
2012-07-03 21:19:37 -04:00
parent 2d42a34059
commit bdcde3632c
3 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -13,7 +13,6 @@ else
pkgconfig_DATA=pc/hidapi.pc
endif
SUBDIRS=
if OS_LINUX
@@ -32,6 +31,8 @@ if OS_WINDOWS
SUBDIRS += windows
endif
SUBDIRS += hidtest
if BUILD_TESTGUI
SUBDIRS += testgui
endif
+1 -1
View File
@@ -145,5 +145,5 @@ else
AC_CONFIG_FILES([pc/hidapi.pc])
fi
AC_CONFIG_FILES([Makefile linux/Makefile libusb/Makefile mac/Makefile windows/Makefile testgui/Makefile])
AC_CONFIG_FILES([Makefile linux/Makefile libusb/Makefile mac/Makefile windows/Makefile hidtest/Makefile testgui/Makefile])
AC_OUTPUT
+21
View File
@@ -0,0 +1,21 @@
AM_CPPFLAGS = -I$(srcdir)/../hidapi/
## Linux
if OS_LINUX
noinst_PROGRAMS = hidtest-libusb hidtest-hidraw
hidtest_hidraw_SOURCES = hidtest.cpp
hidtest_hidraw_LDADD = $(srcdir)/../linux/libhidapi-hidraw.la
hidtest_libusb_SOURCES = hidtest.cpp
hidtest_libusb_LDADD = $(srcdir)/../libusb/libhidapi-libusb.la
else
# Other OS's
noinst_PROGRAMS = hidtest
hidtest_SOURCES = test.cpp
hidtest_LDADD = $(srcdir)/../windows/libhidapi.la
endif