occlum/tools/Makefile
He Sun 28440b0d69 Build in the MAC of the occlum configuration file with objcopy
1. Objcopy the MAC of Occlum.json to libocclum-libos.so before signature
during occlum build.
2. Remove the files and codes no longer used.
2020-06-13 03:33:32 +00:00

27 lines
708 B
Makefile

SGX_MODE ?= HW
ifneq ($(SGX_MODE), HW)
BUILD_DIR := build_sim
else
BUILD_DIR := build
endif
.PHONY: all format format-check clean
all:
@mkdir -p ../$(BUILD_DIR)/bin/
@ln -s -f ../../tools/occlum ../$(BUILD_DIR)/bin/occlum
@ln -s -f ../../tools/occlum-gen-default-occlum-json ../$(BUILD_DIR)/bin/occlum-gen-default-occlum-json
@$(MAKE) --no-print-directory -C protect-integrity
@$(MAKE) --no-print-directory -C gen_enclave_conf
format:
@$(MAKE) --no-print-directory -C protect-integrity format
format-check:
@$(MAKE) --no-print-directory -C protect-integrity format-check
clean:
@$(MAKE) --no-print-directory -C protect-integrity clean
@$(MAKE) --no-print-directory -C gen_enclave_conf clean