From cd739c74e2aa09c178472f43bef09b4fe94948ba Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:43:21 +0300 Subject: [PATCH] add debug profile --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 738ab05..ca1db35 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,16 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(CC) $(CXXFLAGS) -c -o $@ $< blackjack: $(BLACKJACK_OBJ) $(BLACKJACK_DEPS) - $(CC) $(LDFLAGS) -o $(BIN_DIR)/$@ $(BLACKJACK_OBJ) \ No newline at end of file + $(CC) $(LDFLAGS) -o $(BIN_DIR)/$@ $(BLACKJACK_OBJ) + +.PHONY: all clean debug + +all: blackjack + +debug: CXXFLAGS += -DDEBUG -g +debug: LDFLAGS += -g +debug: all + +clean: + rm $(OBJ_DIR)/*.o + rm $(BIN_DIR)/* \ No newline at end of file