summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-11-11 19:00:10 +0200
committerkartofen <mladenovnasko0@gmail.com>2023-11-11 19:00:10 +0200
commit1e436946514f3a0e9fe3d091394db6b86e06f033 (patch)
treecddf3bb618ade66fd5bd4eacd028a7d54a760e37 /Makefile
parent2a733f3d513a7279c1df4efe88fc5386ced2ed14 (diff)
.obj loading
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 939fb4c..d67b5ed 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ GLSLC := glslc
ifeq ($(PROD),1)
CFLAGS := -O2 # production flags
else
-CFLAGS := -Wall -Wextra -Wpedantic -lprofiler -g -DDEBUG # debug flags
+CFLAGS := -Wall -Wextra -Wpedantic -g -DDEBUG # debug flags
endif
CFLAGS += -std=c99 -lm -lvulkan `sdl2-config --cflags --libs` /usr/local/lib/libcglm.a
@@ -77,5 +77,6 @@ sanitize: clean
run: $(NAME)
$(RUN_CMD)
-valgrind: all
- valgrind -s --leak-check=full --show-leak-kinds=all $(RUN_CMD)
+valgrind: $(BIND)/$(NAME)
+ cd $(BIND) && \
+ valgrind -s --leak-check=full --show-leak-kinds=all ./$(NAME)