Skip to content

Commit f763ae3

Browse files
committed
Add LIBUSB flags for FreeBSD
1 parent 5b3a930 commit f763ae3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lmicdiusb/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ ifeq ($(shell uname),Darwin)
4343
LDFLAGS += -framework AppKit -framework Carbon -framework IOKit
4444
endif
4545

46+
ifeq ($(shell uname),FreeBSD)
47+
LIBUSB_CFLAGS :=
48+
LIBUSB_LIBDIR := /usr/lib
49+
LIBUSB_LIBS := -lusb
50+
endif
51+
4652
ifeq ($(shell uname),Linux)
4753
LIBUSB_CFLAGS ?= $(shell pkg-config --cflags libusb-1.0)
4854
LIBUSB_LIBDIR ?= $(shell pkg-config --variable=libdir libusb-1.0)

0 commit comments

Comments
 (0)