diff --git a/Linux/Makefile b/Linux/Makefile index 9524f45f..dcb7dd61 100644 --- a/Linux/Makefile +++ b/Linux/Makefile @@ -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 @@ -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) @@ -49,9 +47,11 @@ sgxssl: $(MAKE) -C sgx/ clean $(MAKE) -C sgx/ -sgxssl_no_mitigation: +sgxssl: $(MAKE) -C sgx/ all +sgxssl_no_mitigation:sgxssl + clean: $(MAKE) -C sgx/ clean rm -rf $(PACKAGE_LIB)/$(OPENSSL_LIB) $(PACKAGE_INC)/openssl/