Skip to content

Commit

Permalink
support building f3write and f3read on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed Aug 20, 2024
1 parent c94c6dd commit e72fda3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e72fda3

Please sign in to comment.