-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 1.03 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: build test clean debug release
all: build
debug:
mkdir -p build
cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..
release:
mkdir -p build
cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
build:
cd build && cmake --build . -j 5
install: build
for i in muri mb64 sha1 bins flink; do cp build/$$i ${HOME}/bin; done
test: build
cd build/t && ctest
clean:
rm -rf build
help:
@echo "=============================================="
@echo "Targets:"
@echo " all"
@echo " Alias for build"
@echo " debug"
@echo " Debug configuration (debug or release needed to build)"
@echo " release"
@echo " Release configuration (debug or release needed to build)"
@echo " build"
@echo " Build code, preferably incrementally, from build directory"
@echo " install"
@echo " Install custom binaries in ${HOME}/bin"
@echo " test"
@echo " Runs build and then testcases with ctest"
@echo " clean"
@echo " Delete all build output"
@echo " help"
@echo " This output"