-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathcommon.mk
45 lines (32 loc) · 997 Bytes
/
common.mk
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
THIS_DIR:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
OSNAME=${shell uname -s}
ifeq ($(OSNAME),Darwin)
$(THIS_DIR)cc_cache.gen.mk : $(THIS_DIR)scripts/gen_tool_defs_macos.sh
@ $(THIS_DIR)scripts/gen_tool_defs_macos.sh > $@
else
$(THIS_DIR)cc_cache.gen.mk : $(THIS_DIR)scripts/gen_tool_defs_linux.sh
@ $(THIS_DIR)scripts/gen_tool_defs_linux.sh > $@
endif
include $(THIS_DIR)cc_cache.gen.mk
CLANG_SYSTEM_INC_PATH=$(shell $(THIS_DIR)./scripts/get_clang_builtin_include_dir.sh $(LLVM_CXX))
LIUM_NCPU?=1
dump_config :
@ cat $(THIS_DIR)cc_cache.gen.mk
@ echo CLANG_SYSTEM_INC_PATH=$(CLANG_SYSTEM_INC_PATH)
commit :
make -C $(THIS_DIR) commit_root
run :
make -C $(THIS_DIR) run_root
run_nobuild :
make -C $(THIS_DIR) run_nobuild_root
run_rust :
make -C $(THIS_DIR) common_run_rust
run_docker :
make -C $(THIS_DIR) run_docker_root
stop_docker :
make -C $(THIS_DIR) stop_docker_root
gdb :
make -C $(THIS_DIR) gdb_root
e2etest :
make -C $(THIS_DIR) e2etest_root
.PHONY : e2etest