diff --git a/Makefile b/Makefile index ddb9f11..98c0f4b 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,12 @@ TEST_TARGET := $(BIN_DIR)/monkey_tests # ------------------------------------------------------------------- # Top‐level rules # ------------------------------------------------------------------- -.PHONY: all clean run tests +.PHONY: all clean run tests valgrind all: $(TARGET) $(TEST_TARGET) +valgrind: CXXFLAGS += -O0 -g +valgrind: $(TARGET) $(TEST_TARGET) + clean: @rm -rf $(BUILD_DIR)