genode/repos/libports/lib/mk/libusb.mk
Christian Prochaska 55d709a175 libports: add libusb
Fixes #2142
2016-11-08 15:26:28 +01:00

24 lines
470 B
Makefile

LIBUSB_DIR := $(call select_from_ports,libusb)/src/lib/libusb
LIBS += libc libc_pipe pthread
# find 'config.h'
INC_DIR += $(REP_DIR)/src/lib/libusb
INC_DIR += $(LIBUSB_DIR)/libusb
SRC_C = core.c \
descriptor.c \
io.c \
strerror.c \
sync.c \
hotplug.c \
os/poll_posix.c \
os/threads_posix.c
SRC_CC = genode_usb_raw.cc
vpath %.c $(LIBUSB_DIR)/libusb
vpath %.cc $(REP_DIR)/src/lib/libusb
SHARED_LIB = yes