-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
61 lines (42 loc) · 1.21 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
53
54
55
56
57
58
59
60
61
# Dummy makefile, will call the host and enclave makefile when requested.
CC ?= clang
CXX ?= clang++
SRC_U = app/
SRC_T = enclave/
SRC_WASM_MED= get-median-wasm/
SRC_WASM_MEAN= get-mean-wasm/
# SRC_WASM_SD= get-sd-wasm/
# Compilation process, will call the appropriate makefiles.
all: host enclave wasm
host:
@echo "\033[32mRequest to compile the host part...\033[0m"
@make -C $(SRC_U)
enclave:
@echo "\033[32mRequest to compile the enclave part...\033[0m"
@make -C $(SRC_T)
wasm:
@echo "\033[32mRequest to compile the wasm part...\033[0m"
@make -C $(SRC_WASM_MED)
@make -C $(SRC_WASM_MEAN)
clean:
@make -C $(SRC_U) clean
@make -C $(SRC_T) clean
@make -C $(SRC_WASM_MED) clean
@make -C $(SRC_WASM_MEAN) clean
@make -C $(SRC_WASM_SD) clean
fclean:
@make -C $(SRC_U) fclean
@make -C $(SRC_T) fclean
clean_host:
@make -C $(SRC_U) clean
clean_enclave:
@make -C $(SRC_T) clean
fclean_host:
@make -C $(SRC_U) fclean
fclean_enclave:
@make -C $(SRC_T) fclean
re_host: fclean_host host
re_enclave: fclean_enclave enclave
re: fclean all
# Dummy rules to let make know that those rules are not files.
.PHONY: host enclave clean clean_host clean_enclave fclean_host fclean_enclave fclean re re_host re_enclave