forked from lbcb-sci/racon
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 728 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 728 Bytes
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: all clean meson cmake debug dist modules
all: meson
clean:
rm -rf build build-meson
meson: modules
@echo "[Invoking Meson]"
@mkdir -p build-meson && cd build-meson && meson --buildtype=release -Dc_args=-O3 -Dtests=true && ninja
rebuild: modules
@echo "[Running Ninja only]"
@ninja -C build-meson
cmake: modules
@echo "[Invoking CMake]"
@mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -Dracon_build_tests=ON .. && make
debug: modules
@echo "[Invoking Meson]"
@mkdir -p build-debug && cd build-debug && (meson --buildtype=debugoptimized -Db_sanitize=address -Dtests=true) && ninja
dist: release
cd build && ninja-dist
modules:
@echo "[Fetching submodules]"
@git submodule update --init