@@ -34,8 +34,8 @@ ifeq (,$(filter $(CC),x86_64-w64-mingw32-gcc i686-w64-mingw32-gcc x86_64-w64-min
3434 detected_OS := $(shell uname 2>/dev/null || echo Unknown)
3535
3636 ifeq ($(detected_OS),Darwin) # Mac OS X
37- LIBS := -framework Foundation -framework AppKit -framework OpenGL -framework IOKit
38- VULKAN_LIBS = -framework Foundation -framework AppKit -lvulkan
37+ LIBS := -framework Cocoa -framework OpenGL -framework IOKit
38+ VULKAN_LIBS =
3939 EXT =
4040 LIB_EXT = .dylib
4141 OS_DIR = /
@@ -156,7 +156,7 @@ endif
156156examples/metal/metal : examples/metal/metal.m RGFW.h
157157ifeq ($(detected_OS ) ,Darwin) # Mac OS X
158158 gcc $(CUSTOM_CFLAGS) -x c -c RGFW.h -D RGFW_NO_API -D RGFW_EXPORT -D RGFW_IMPLEMENTATION -o RGFW.o
159- gcc $(CUSTOM_CFLAGS) examples/metal/metal.m RGFW.o -I. -framework Metal -framework Foundation -framework AppKit -framework Cocoa -framework IOKit -framework QuartzCore -o $@
159+ gcc $(CUSTOM_CFLAGS) examples/metal/metal.m RGFW.o -I. -framework Metal -framework Cocoa -framework IOKit -framework QuartzCore -o $@
160160else
161161 @echo metal is not supported on $(detected_OS)
162162endif
@@ -176,7 +176,7 @@ else ifeq ($(detected_OS),Linux)
176176else ifeq ($(detected_OS),windows)
177177 $(CC) $(CFLAGS) $(WARNINGS) -I. $< -lgdi32 -o $@$(EXT)
178178else ifeq ($(detected_OS),Darwin)
179- $(CC) $(CFLAGS) $(WARNINGS) -I. $< -framework Foundation -framework AppKit -o $@$(EXT)
179+ $(CC) $(CFLAGS) $(WARNINGS) -I. $< -framework Cocoa -o $@$(EXT)
180180else
181181 @echo minimal_links is not supported on this platform
182182endif
0 commit comments