diff --git a/channel/banner/tools/Makefile b/channel/banner/tools/Makefile index f42bd79..8f072b3 100644 --- a/channel/banner/tools/Makefile +++ b/channel/banner/tools/Makefile @@ -1,5 +1,14 @@ -CFLAGS = -O3 -Wall -I/usr/local/include -L/usr/local/lib +UNAME_S := $(shell uname -s) +UNAME_M := $(shell uname -m) + +ifeq ($(UNAME_S),Darwin) + ifeq ($(UNAME_M),arm64) + CFLAGS = -O3 -Wall -I/opt/homebrew/include -L/opt/homebrew/lib + else + CFLAGS = -O3 -Wall -I/usr/local/include -L/usr/local/lib + endif +endif CC = $(PREFIX)gcc STRIP = $(PREFIX)strip