diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |