-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (46 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
57 lines (46 loc) · 1.19 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
INSTALLROOT=$(HOME)
TEST=
TESTCMD=
VERBOSE=
ARGS=
ifneq ($(TEST),)
TESTCMD=-R $(TEST)
endif
ifeq ($(VERBOSE),1)
ARGS=--verbose
endif
.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 ${INSTALLROOT}/bin; done
test: build
cd build/t && ctest $(TESTCMD) $(ARGS)
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"