From a14f87bd23c5e5e4668f98c98ea6b6c143497887 Mon Sep 17 00:00:00 2001 From: Coues Ludovic Date: Thu, 10 Jul 2014 23:15:00 +0200 Subject: Support OpenBSD --- commandline/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commandline/Makefile b/commandline/Makefile index 3c52cb4..e8aadfd 100644 --- a/commandline/Makefile +++ b/commandline/Makefile @@ -20,6 +20,11 @@ else ifeq ($(shell uname), Darwin) # USBLIBS += -framework IOKit # Uncomment these to create a dual architecture binary: # OSFLAG += -arch x86_64 -arch i386 +else ifeq ($(shell uname), OpenBSD) + USBFLAGS=$(shell libusb-config --cflags || libusb-legacy-config --cflags) + USBLIBS=$(shell libusb-config --libs || libusb-legacy-config --libs) + EXE_SUFFIX = + OSFLAG = -D OPENBSD else USBFLAGS = -I C:\MinGW\include USBLIBS = -L C:\MinGW\lib -lusb -- cgit v1.2.3