Merge pull request #225 from Coeur/coeur/Apple-Silicon

support building f3write and f3read on Apple Silicon
This commit is contained in:
Michel Machado 2024-08-20 12:25:48 -04:00 committed by GitHub
commit 8cbe984ac6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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