Skip to content

Commit

Permalink
Makefile debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Boehm committed Mar 1, 2023
1 parent 2f7f19c commit 4a4f6fb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build clean profile bench
.PHONY: all build debug clean profile bench

CMAKE := cmake
NINJA := ninja
Expand All @@ -10,8 +10,13 @@ all: build

build:
@mkdir -p $(BUILD_DIR)
@cd $(BUILD_DIR) && $(CMAKE) .. -G Ninja
@$(NINJA) -C $(BUILD_DIR)
@cd $(BUILD_DIR) && $(CMAKE) -DCMAKE_BUILD_TYPE=Release ..
@$(MAKE) -C $(BUILD_DIR)

debug:
@mkdir -p $(BUILD_DIR)
@cd $(BUILD_DIR) && $(CMAKE) -DCMAKE_BUILD_TYPE=Debug ..
@$(MAKE) -C $(BUILD_DIR)

clean:
@rm -rf $(BUILD_DIR)
Expand Down

0 comments on commit 4a4f6fb

Please sign in to comment.