forked from zenustech/zeno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 807 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
30
31
32
33
34
O=arts/make3dgrid.zsg
default: run
dist: all
make -C build install
./dist.sh
all:
cmake -B build
make -C build -j `python -c 'from multiprocessing import cpu_count; print(cpu_count() * 2)'`
release_all:
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/tmp-install
make -C build -j `python -c 'from multiprocessing import cpu_count; print(cpu_count() * 2)'`
debug_all:
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/tmp/tmp-install
make -C build -j `python -c 'from multiprocessing import cpu_count; print(cpu_count() * 2)'`
configure:
cmake -B build
ccmake -B build
test: all
build/tests/zentest
run: all
ZEN_OPEN=$O ./run.sh
debug: debug_all
USE_GDB=1 ZEN_SPROC=1 ZEN_OPEN=$O ./run.sh
.PHONY: all debug_all debug run dist test configure default