From 7577b6d51c5180ec23f93cec79a5c77e54130558 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:51:02 +1100 Subject: fix compilation on mac --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 92afab1..4000eec 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CC := clang INCLUDES := -I./include -Ideps/glfw-3.3.8/include/GLFW -Ideps/stb_image CFLAGS := -Wall -Wextra -O2 -fPIC $(INCLUDES) # TODO(low prio): split static object files and shared object files so we can remove -fPIC from static lib builds -LDFLAGS := -lglfw -lvulkan +LDFLAGS := -lglfw # Detect OS UNAME_S := $(shell uname -s) @@ -39,6 +39,7 @@ ifeq ($(UNAME_S),Darwin) else SHARED_LIB := $(BUILD_DIR)/libceleritas.so SHARED_FLAGS := -shared + LDFLAGS += -lvulkan endif ## Makefile notes -- cgit v1.2.3-70-g09d2