summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-27 11:51:02 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-27 11:51:02 +1100
commit7577b6d51c5180ec23f93cec79a5c77e54130558 (patch)
tree1b372bf5ccc89eba828ff15f87558ff695b6d75d /Makefile
parente597fbb916848df1f6fbd4da04c1ab6f89a25b45 (diff)
fix compilation on mac
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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