-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
19 lines (12 loc) · 672 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ALL_UNTRUSTED_MK=$(shell find . -name '*sgx_u.mk')
ALL_TRUSTED_MK=$(shell find . -name '*sgx_t.mk')
ALL_STATIC_MK=$(shell find . -name '*sgx_t_static.mk')
.PHONY: all clean run debug
all clean:
$(foreach U_MK, $(ALL_UNTRUSTED_MK), $(MAKE) -C $(shell dirname $(U_MK)) -f $(shell basename $(U_MK)) $@;)
$(foreach T_MK, $(ALL_TRUSTED_MK), $(MAKE) -C $(shell dirname $(T_MK)) -f $(shell basename $(T_MK)) $@;)
$(foreach U_MK, $(ALL_STATIC_MK), $(MAKE) -C $(shell dirname $(U_MK)) -f $(shell basename $(U_MK)) $@;)
run:
$(foreach U_MK, $(ALL_UNTRUSTED_MK), $(MAKE) -C $(shell dirname $(U_MK)) -f $(shell basename $(U_MK)) $@;)
debug:
$(MAKE) all SGX_DEBUG=1