-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
29 lines (23 loc) · 969 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
# delete all build products built by a rule that exits nonzero
.DELETE_ON_ERROR:
ifneq ($V,1)
.SILENT:
endif
clean:
cmake --build build --target clean
.DEFAULT_GOAL = all
################################################################################
all:
cmake -S . -B build -DJIT=${JIT} -DSDL=${SDL} -DICARUS=${ICARUS}
cmake --build build
check: all
cmake -S . -B build -DJIT=${JIT} -DSDL=${SDL} -DICARUS=${ICARUS} -DTESTING=1
cmake --build build
export PATH=$(abspath .):$$PATH && cd build && ctest --output-on-failure
# Use CMAKE_BUILD_TYPE=Debug for coverage to avoid glitchy optimizations.
coverage: CMAKE_BUILD_TYPE = Debug
coverage:
cmake -S . -B build -DJIT=${JIT} -DSDL=${SDL} -DICARUS=${ICARUS} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCOVERAGE=1
cmake --build build --target all
cmake -S . -B build -DJIT=${JIT} -DSDL=${SDL} -DICARUS=${ICARUS} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DTESTING=1 -DCOVERAGE=1
cmake --build build --target $@