1AM_CPPFLAGS = -I$(top_srcdir)/hidapi $(CFLAGS_LIBUSB)
2
3if OS_LINUX
4lib_LTLIBRARIES = libhidapi-libusb.la
5libhidapi_libusb_la_SOURCES = hid.c
6libhidapi_libusb_la_LDFLAGS = $(LTLDFLAGS) $(PTHREAD_CFLAGS)
7libhidapi_libusb_la_LIBADD = $(LIBS_LIBUSB)
8endif
9
10if OS_FREEBSD
11lib_LTLIBRARIES = libhidapi.la
12libhidapi_la_SOURCES = hid.c
13libhidapi_la_LDFLAGS = $(LTLDFLAGS)
14libhidapi_la_LIBADD = $(LIBS_LIBUSB)
15endif
16
17if OS_KFREEBSD
18lib_LTLIBRARIES = libhidapi.la
19libhidapi_la_SOURCES = hid.c
20libhidapi_la_LDFLAGS = $(LTLDFLAGS)
21libhidapi_la_LIBADD = $(LIBS_LIBUSB)
22endif
23
24hdrdir = $(includedir)/hidapi
25hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h
26
27EXTRA_DIST = Makefile-manual
28