add debug profile

This commit is contained in:
mykola2312 2024-07-18 17:43:21 +03:00
parent 1137a14eda
commit cd739c74e2

View file

@ -18,3 +18,15 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
blackjack: $(BLACKJACK_OBJ) $(BLACKJACK_DEPS)
$(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)/*