From 3846af42209ca4294eee4161e579e7f72636df68 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 2 Mar 2026 15:20:22 -0800 Subject: [PATCH] Updated Makefile config for MacOS. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3618a0b..cadc212 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,8 @@ FLAGS = -Wall -Wextra -ggdb -fno-caret-diagnostics -fno-show-column -Wno-missing #-std=c99 -pedantic ifeq ($(DETECTED_OS),macos) - INCLUDE = $(shell pkg-config --cflags raylib) - LIBS = $(shell pkg-config --libs raylib) + INCLUDE = -I./raylib/include/ + LIBS = ./raylib/lib/arm_macos/libraylib.a -lm FRAMEWORKS = -framework IOKit -framework Cocoa -framework OpenGL else ifeq ($(DETECTED_OS),linux) INCLUDE = -I./raylib/include/ @@ -35,7 +35,7 @@ endif EXE=main $(EXE): $(EXE).c - $(CC) $(FLAGS) $(UFLAGS) $(INCLUDE) $^ $(LIBS) -o $@ + $(CC) $(FLAGS) $(UFLAGS) $(INCLUDE) $^ $(LIBS) $(FRAMEWORKS) -o $@ tags: $(OBJS) ctags -R *.h *.c