Skip to content

Commit 48de2c9

Browse files
committed
Add Makefile
1 parent 94eb3d7 commit 48de2c9

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CONFIG ?= Release
2+
BUILD_DIR := build
3+
BUILD_MAKE := $(BUILD_DIR)/Makefile
4+
5+
.PHONY: all configure build clean
6+
all: build
7+
8+
$(BUILD_MAKE):
9+
cmake -S . -Bbuild -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$(CONFIG) -DCMAKE_COLOR_DIAGNOSTICS=ON
10+
11+
configure: $(BUILD_MAKE)
12+
13+
build: configure
14+
cmake --build build --config $(CONFIG) -j$(shell nproc)
15+
16+
clean:
17+
rm -rf $(BUILD_DIR)

0 commit comments

Comments
 (0)