mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-05 13:21:37 +00:00
For detection of SGX/non-SGX (for example in regression tests) always use the SGX environment variable. To generate launch/EINIT tokens use the new 'sgx-tokens' Make target.
18 lines
332 B
Makefile
18 lines
332 B
Makefile
SYS ?= $(shell gcc -dumpmachine)
|
|
export SYS
|
|
|
|
targets = all clean format test sgx-tokens
|
|
|
|
ifneq ($(filter sgx-tokens,$(MAKECMDGOALS)),)
|
|
ifneq ($(SGX),1)
|
|
$(error "The 'sgx-tokens' target requires SGX=1")
|
|
endif
|
|
endif
|
|
|
|
.PHONY: $(targets)
|
|
$(targets):
|
|
$(MAKE) -C Scripts $@
|
|
$(MAKE) -C Pal $@
|
|
$(MAKE) -C LibOS $@
|
|
$(MAKE) -C Runtime $@
|