forked from tijyojwad/pancake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (48 loc) · 1.67 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
CURRENT_BUILD_DIR?=build
CURRENT_DEBUG_BUILD_DIR?=build-debug
CURRENT_DEBUG_BUILD_DIR_SANITIZE?=build-debug-sanitize
ENABLED_TESTS?=true
export ENABLED_TESTS CURRENT_BUILD_DIR
.PHONY: all build conf conf-debug unit cram modules check-formatting build-debug build-debug2 conf-debug2 debug2
################
### Release. ###
################
build:
mkdir -p ${CURRENT_BUILD_DIR} && ninja -C "${CURRENT_BUILD_DIR}" -v test
conf:
rm -rf "${CURRENT_BUILD_DIR}"
ENABLED_GPU_CUDA=false ENABLED_SSE41=true ENABLED_TESTS=true bash -vex scripts/ci/configure_with_fallback.sh
conf-gpu:
rm -rf "${CURRENT_BUILD_DIR}"
ENABLED_GPU_CUDA=true ENABLED_SSE41=true ENABLED_TESTS=true bash -vex scripts/ci/configure_with_fallback.sh
all: conf build cram check-formatting
all-gpu: conf-gpu build cram check-formatting
################
### Debug. ###
################
build-debug:
mkdir -p ${CURRENT_DEBUG_BUILD_DIR} && ninja -C "${CURRENT_DEBUG_BUILD_DIR}" -v test
conf-debug:
rm -rf "${CURRENT_DEBUG_BUILD_DIR}"
bash -vex scripts/ci/configure_debug_fallback.sh ${CURRENT_DEBUG_BUILD_DIR}
debug: conf-debug build-debug
build-debug2:
mkdir -p ${CURRENT_DEBUG_BUILD_DIR_SANITIZE} && ninja -C "${CURRENT_DEBUG_BUILD_DIR_SANITIZE}" -v test
conf-debug2:
rm -rf "${CURRENT_DEBUG_BUILD_DIR_SANITIZE}"
bash -vex scripts/ci/configure_debug_sanitize_fallback.sh ${CURRENT_DEBUG_BUILD_DIR_SANITIZE}
debug2: conf-debug2 build-debug2
##############
### Tests. ###
##############
unit:
ninja -C "${CURRENT_BUILD_DIR}" -v test
cram: modules
scripts/cram tests/cram/*.t
check-formatting:
tools/check-formatting --all
##############
### Other. ###
##############
modules:
git submodule update --init --recursive