forked from zenustech/zeno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1.39 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
O=arts/prim.zsg
#O=graphs/BulletRigidSim.zsg
#O=graphs/Xuben_ZFX_IISPH.zsg
#O=arts/ZFXv2.zsg
#O=arts/lowResMPM.zsg
#O=arts/literialconst.zsg
#O=arts/blendtest.zsg
default: run
#####################################################
###### THIS FILE IS USED BY ARCHIBATE AND ZHXX ######
## NORMAL USERS SHOULD USE `make -C build` INSTEAD ##
#####################################################
#O=arts/ZFXv2.zsg
#default: run
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
easygl: all
build/projects/EasyGL/zeno_EasyGL_main
run: all
ZEN_OPEN=$O python3 -m zenqt
glrun: all
ZEN_NOFORK=1 ZEN_NOVIEW=1 ZEN_OPEN=$O python3 -m zenqt
gldebug: debug_all
ZEN_NOSIGHOOK=1 ZEN_NOVIEW=1 USE_GDB=1 ZEN_SPROC=1 ZEN_OPEN=$O gdb python3 -ex 'r -m zenqt'
debug: debug_all
ZEN_NOSIGHOOK=1 USE_GDB=1 ZEN_SPROC=1 ZEN_OPEN=$O gdb python3 -ex 'r -m zenqt'
.PHONY: all debug_all debug run test configure default