mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
- fix including platform-specific includes when HIDAPI is a CMake subdirectory; - check libusb and winapi platform-specific headers with hidtest;
29 lines
556 B
Makefile
29 lines
556 B
Makefile
AM_CPPFLAGS = -I$(top_srcdir)/hidapi/
|
|
|
|
## Linux
|
|
if OS_LINUX
|
|
noinst_PROGRAMS = hidtest-libusb hidtest-hidraw
|
|
|
|
hidtest_hidraw_SOURCES = test.c
|
|
hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la
|
|
|
|
hidtest_libusb_SOURCES = test.c
|
|
hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la
|
|
else
|
|
|
|
# Other OS's
|
|
noinst_PROGRAMS = hidtest
|
|
|
|
hidtest_SOURCES = test.c
|
|
hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la
|
|
|
|
endif
|
|
|
|
if OS_DARWIN
|
|
AM_CPPFLAGS += -I$(top_srcdir)/mac/
|
|
endif
|
|
|
|
if OS_WINDOWS
|
|
AM_CPPFLAGS += -I$(top_srcdir)/windows/
|
|
endif
|