-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
29 lines (23 loc) · 937 Bytes
/
makefile
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
.PHONY: build clean test
MAKE_FLAGS=-j $$(nproc)
# ============================================================================ #
# BUILD
# ============================================================================ #
BUILD_TYPE = "Release"
EXAMPLES = "ON"
STATS = "OFF"
build:
@mkdir -p build/ && cd build/ && cmake -D CMAKE_BUILD_TYPE=$(BUILD_TYPE) \
-D BUDDY_STATS=$(STATS) \
-D BUDDY_EXAMPLES=$(EXAMPLES) ..
cd build && $(MAKE)
# ============================================================================ #
# CLEAN
# ============================================================================ #
clean:
@rm -rf build
# ============================================================================ #
# Examples
# ============================================================================ #
test:
@cd build/examples/ && ./runregression