Skip to content

Commit

Permalink
Add LIBUSB flags for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Nov 30, 2014
1 parent 5b3a930 commit f763ae3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lmicdiusb/Makefile
Expand Up @@ -43,6 +43,12 @@ ifeq ($(shell uname),Darwin)
LDFLAGS += -framework AppKit -framework Carbon -framework IOKit
endif

ifeq ($(shell uname),FreeBSD)
LIBUSB_CFLAGS :=
LIBUSB_LIBDIR := /usr/lib
LIBUSB_LIBS := -lusb
endif

ifeq ($(shell uname),Linux)
LIBUSB_CFLAGS ?= $(shell pkg-config --cflags libusb-1.0)
LIBUSB_LIBDIR ?= $(shell pkg-config --variable=libdir libusb-1.0)
Expand Down

0 comments on commit f763ae3

Please sign in to comment.