added valgrind to targets to check for memory

leaks
This commit is contained in:
Karma Riuk
2025-07-02 22:59:49 +02:00
parent d328ae60df
commit 6181fc8d9f

View File

@@ -31,9 +31,12 @@ TEST_TARGET := $(BIN_DIR)/monkey_tests
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# Toplevel rules # Toplevel rules
# ------------------------------------------------------------------- # -------------------------------------------------------------------
.PHONY: all clean run tests .PHONY: all clean run tests valgrind
all: $(TARGET) $(TEST_TARGET) all: $(TARGET) $(TEST_TARGET)
valgrind: CXXFLAGS += -O0 -g
valgrind: $(TARGET) $(TEST_TARGET)
clean: clean:
@rm -rf $(BUILD_DIR) @rm -rf $(BUILD_DIR)