diff --git a/Makefile b/Makefile index 20af8a7..82b2d72 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,11 @@ ifndef OS endif ifneq ($(OS), Linux) ARGP = /usr/local + ifeq ($(OS), Darwin) + ifneq ($(shell command -v brew),) + ARGP = $(shell brew --prefix) + endif + endif CFLAGS += -I$(ARGP)/include LDFLAGS += -L$(ARGP)/lib -largp endif