Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Linux/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
# Copyright (C) 2011-2022 Intel Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -35,9 +35,7 @@ EMPTY_SRC = check_lvi_toolset
.PHONY: sgxssl sgxssl_no_mitigation clean install uninstall


all: sgxssl

sgxssl:
all:
@rm -rf $(EMPTY_SRC).* && touch $(EMPTY_SRC).cpp
@gcc -Wa,-mlfence-after-load=yes -c $(EMPTY_SRC).cpp 2> /dev/null \
|| (echo "Please follow the instruction at https://github.com/intel/linux-sgx/blob/master/README.md#build-the-intelr-sgx-sdk-and-intelr-sgx-psw-package to install \"mitigation tools\" first." && exit 1)
Expand All @@ -49,9 +47,11 @@ sgxssl:
$(MAKE) -C sgx/ clean
$(MAKE) -C sgx/

sgxssl_no_mitigation:
sgxssl:
$(MAKE) -C sgx/ all

sgxssl_no_mitigation:sgxssl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that we simplify the build process by making the build process longer all the time.
I found the option to build the SGX-SSL library faster convenient for testing changes.


clean:
$(MAKE) -C sgx/ clean
rm -rf $(PACKAGE_LIB)/$(OPENSSL_LIB) $(PACKAGE_INC)/openssl/
Expand Down