-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 673 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
BUILD_DIR ?= build
BUILD_TYPE ?= Release
all: configure
@cmake --build $(BUILD_DIR) --config $(BUILD_TYPE) -j12
@mv $(BUILD_DIR)/file_manager .
debug: BUILD_TYPE := Debug
debug: configure
@cmake --build $(BUILD_DIR) --config Debug -j12
@mv $(BUILD_DIR)/file_manager .
profile: BUILD_TYPE := Profile
profile: configure
@cmake --build $(BUILD_DIR) --config Profile -j12
@mv $(BUILD_DIR)/file_manager .
configure:
@mkdir -p $(BUILD_DIR)
@cd $(BUILD_DIR) && cmake .. -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
clean:
@cmake --build $(BUILD_DIR) --target clean
fclean:
@rm -rf $(BUILD_DIR)
@rm -rf file_manager
re: fclean all
.PHONY: all debug profile clean fclean re