diff --git a/hidparsertest/Makefile.am b/hidparsertest/Makefile.am new file mode 100644 index 00000000..2630cbd6 --- /dev/null +++ b/hidparsertest/Makefile.am @@ -0,0 +1,20 @@ +AM_CFLAGS = -I$(top_srcdir)/hidapi/ -I$(top_srcdir)/hidapi_parser/ +AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ -I$(top_srcdir)/hidapi_parser/ +## Linux +if OS_LINUX +noinst_PROGRAMS = hidapi_parser-libusb hidapi_parser-hidraw + +hidapi_parser_hidraw_SOURCES = $(top_srcdir)/hidapi_parser/hidapi_parser.c hidparsertest.c +hidapi_parser_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la + +hidapi_parser_libusb_SOURCES = $(top_srcdir)/hidapi_parser/hidapi_parser.c hidparsertest.c +hidapi_parser_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la +else + +noinst_PROGRAMS = hidapi_parser + +hidapi_parser_SOURCES = $(top_srcdir)/hidapi_parser/hidapi_parser.c hidparsertest.c +# hidapi_parser_HEADERS = hidapi_parser.h +hidapi_parser_LDADD = $(top_builddir)/$(backend)/libhidapi.la + +endif