From e72fda3a056a1757bb713e60fe5d026f6d0cb1f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Tue, 20 Aug 2024 09:52:20 +0200 Subject: [PATCH] support building f3write and f3read on Apple Silicon --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 20af8a7..f9bff89 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,10 @@ ifndef OS OS = $(shell uname -s) endif ifneq ($(OS), Linux) - ARGP = /usr/local - CFLAGS += -I$(ARGP)/include - LDFLAGS += -L$(ARGP)/lib -largp + ARGP = /usr/local# Intel + ARGP2 = /opt/homebrew# Apple Silicon + CFLAGS += -I$(ARGP)/include -I$(ARGP2)/include + LDFLAGS += -L$(ARGP)/lib -L$(ARGP2)/lib -largp endif all: $(TARGETS)