Skip to content

Commit e57d388

Browse files
make links even more minimal
1 parent c16c50d commit e57d388

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
156156
examples/metal/metal: examples/metal/metal.m RGFW.h
157157
ifeq ($(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 $@
160160
else
161161
@echo metal is not supported on $(detected_OS)
162162
endif
@@ -176,7 +176,7 @@ else ifeq ($(detected_OS),Linux)
176176
else ifeq ($(detected_OS),windows)
177177
$(CC) $(CFLAGS) $(WARNINGS) -I. $< -lgdi32 -o $@$(EXT)
178178
else ifeq ($(detected_OS),Darwin)
179-
$(CC) $(CFLAGS) $(WARNINGS) -I. $< -framework Foundation -framework AppKit -o $@$(EXT)
179+
$(CC) $(CFLAGS) $(WARNINGS) -I. $< -framework Cocoa -o $@$(EXT)
180180
else
181181
@echo minimal_links is not supported on this platform
182182
endif

0 commit comments

Comments
 (0)