1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
OS=$(shell uname) ifeq ($(OS), Linux) FILE=Makefile.linux endif ifeq ($(OS), FreeBSD) FILE=Makefile.freebsd endif ifeq ($(FILE), ) all: $(error Your platform ${OS} is not supported by hidapi/libusb at this time.) endif include $(FILE)