add debug profile
This commit is contained in:
parent
1137a14eda
commit
cd739c74e2
1 changed files with 13 additions and 1 deletions
14
Makefile
14
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)
|
||||
$(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)/*
|
||||
Loading…
Add table
Reference in a new issue