Fix comiler flag on macOS to include libusb

This fixes the compilation error on utils/usbutil.c:22, 'usb.h' file
not found.
This commit is contained in:
Tadashi G. Takaoka 2018-04-03 23:13:59 +09:00
parent 7c41acd418
commit 377f1d772f
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ else
PORTS_CFLAGS := $(shell pkg-config --cflags hidapi libusb)
PORTS_LDFLAGS := $(shell pkg-config --libs hidapi libusb) -ltermcap -pthread
else ifeq ($(shell brew --version > /dev/null 2>&1 && echo ok),ok)
PORTS_CFLAGS := $(shell pkg-config --cflags hidapi)
PORTS_LDFLAGS := $(shell pkg-config --libs hidapi) -framework IOKit -framework CoreFoundation
PORTS_CFLAGS := $(shell pkg-config --cflags hidapi libusb)
PORTS_LDFLAGS := $(shell pkg-config --libs hidapi libusb) -framework IOKit -framework CoreFoundation
else
PORTS_CFLAGS := -I/opt/local/include
PORTS_LDFLAGS := -L/opt/local/lib -lhidapi -framework IOKit -framework CoreFoundation