From 18a9d5b425d827d20e6c5abe9284feb27b920df3 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 9 Mar 2020 17:29:41 +0100 Subject: [PATCH] Use an indirect reference to detect the 3rdparty directory --- 3rdparty/Makefile.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/3rdparty/Makefile.inc b/3rdparty/Makefile.inc index c93fcbcc6..0ed85af51 100644 --- a/3rdparty/Makefile.inc +++ b/3rdparty/Makefile.inc @@ -1,5 +1,2 @@ -ifeq ($(INCLUDING_FROM_MBEDTLS), 1) -include ../crypto/3rdparty/everest/Makefile.inc -else -include ../3rdparty/everest/Makefile.inc -endif +THIRDPARTY_DIR = $(dir $(lastword $(MAKEFILE_LIST))) +include $(THIRDPARTY_DIR)/everest/Makefile.inc