added valgrind to targets to check for memory
leaks
This commit is contained in:
5
Makefile
5
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)
|
||||
|
||||
|
Reference in New Issue
Block a user