mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-21 00:45:21 -04:00
6a4743ee59
m4/ax_pthread.m4 says that PTHREAD_CFLAGS needs to be provided to the linker line as well as the compile line. This enables static library builds of hidapi.
28 lines
666 B
Makefile
28 lines
666 B
Makefile
AM_CPPFLAGS = -I$(top_srcdir)/hidapi $(CFLAGS_LIBUSB)
|
|
|
|
if OS_LINUX
|
|
lib_LTLIBRARIES = libhidapi-libusb.la
|
|
libhidapi_libusb_la_SOURCES = hid.c
|
|
libhidapi_libusb_la_LDFLAGS = $(LTLDFLAGS) $(PTHREAD_CFLAGS)
|
|
libhidapi_libusb_la_LIBADD = $(LIBS_LIBUSB)
|
|
endif
|
|
|
|
if OS_FREEBSD
|
|
lib_LTLIBRARIES = libhidapi.la
|
|
libhidapi_la_SOURCES = hid.c
|
|
libhidapi_la_LDFLAGS = $(LTLDFLAGS)
|
|
libhidapi_la_LIBADD = $(LIBS_LIBUSB)
|
|
endif
|
|
|
|
if OS_KFREEBSD
|
|
lib_LTLIBRARIES = libhidapi.la
|
|
libhidapi_la_SOURCES = hid.c
|
|
libhidapi_la_LDFLAGS = $(LTLDFLAGS)
|
|
libhidapi_la_LIBADD = $(LIBS_LIBUSB)
|
|
endif
|
|
|
|
hdrdir = $(includedir)/hidapi
|
|
hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h
|
|
|
|
EXTRA_DIST = Makefile-manual
|