From 377f1d772f1bf7b88da6bd2a7b203956b17753a4 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 3 Apr 2018 23:13:59 +0900 Subject: [PATCH] Fix comiler flag on macOS to include libusb This fixes the compilation error on utils/usbutil.c:22, 'usb.h' file not found. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 415cbe6..b1ee601 100644 --- a/Makefile +++ b/Makefile @@ -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