From acd1c21be4de3eb7a3e4c4e4077047f4793a0673 Mon Sep 17 00:00:00 2001 From: chenxu Date: Thu, 20 Feb 2025 22:27:41 +0800 Subject: [PATCH] for mac M1 --- .gitignore | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba077a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin diff --git a/Makefile b/Makefile index a5ae46f..68579d6 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CFLAGS := -I . -I /usr/include/SDL2 UNAME := $(shell uname -s) ifeq ($(UNAME),Darwin) - CFLAGS += -I /Library/Frameworks/SDL2.framework/Headers -F /Library/Frameworks/ -framework SDL2 + CFLAGS += -I/opt/homebrew/include/SDL2 -D_THREAD_SAFE -L/opt/homebrew/lib -lSDL2 else LDFLAGS := -lSDL2 endif