-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·39 lines (31 loc) · 902 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
35
36
37
38
39
.PHONY: build rpc
system_file_name=./thirdparty/Imagine_System
tool_file_name=./thirdparty/Imagine_Tool
all: clean init prepare build
init:
python3 init.py
prepare:
ifneq (${wildcard ${system_file_name}},)
@echo "Imagine_System exists"
else
@echo -e "\033[;31mImagine_System NOT exist, Please exucete make init to init it\033[0m"
exit 1
endif
ifneq (${wildcard ${tool_file_name}},)
@echo "Imagine_Tool exists"
else
@echo -e "\033[;31mImagine_Tool NOT exist, Please exucete make init to init it\033[0m"
exit 1
endif
cd ${system_file_name} && make prepare
cd ${tool_file_name} && make prepare
proto_init:
./proto_generate.sh
build:
cd build && cmake -DBUILD_RPC=OFF .. && make imagine_rpc
generator:
cd build && cmake -DBUILD_RPC_SERVICE_GENERATOR=ON .. && make imagine_rpc_service_generator
rpc:
cd build && cmake -DBUILD_RPC=ON .. && make imagine_rpc
clean:
cd build && make clean