From df2cd9e14f5fb49078cfea0e62a9c000bf130a01 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 7 Oct 2019 09:24:22 -0400 Subject: [PATCH] Makefiles: move the dependencies block to be after DLEXT definition Having it before them resulted in incomplete dependency names, always ending with a period. --- programs/Makefile | 12 ++++++------ tests/Makefile | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/programs/Makefile b/programs/Makefile index dce970b96..188c2beea 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -23,12 +23,6 @@ include ../crypto/3rdparty/Makefile.inc LOCAL_CFLAGS += $(patsubst -I../3rdparty/%, -I../crypto/3rdparty/%, $(THIRDPARTY_INCLUDES)) LOCAL_CFLAGS += $(patsubst -I../3rdparty/%, -I../crypto/3rdparty/%, $(THIRDPARTY_INCLUDES)) -ifndef SHARED -DEP=../crypto/library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a -else -DEP=../crypto/library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT) -endif - ifdef DEBUG LOCAL_CFLAGS += -g3 endif @@ -51,6 +45,12 @@ EXEXT= SHARED_SUFFIX= endif +ifndef SHARED +DEP=../crypto/library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a +else +DEP=../crypto/library/libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT) +endif + # Zlib shared library extensions: ifdef ZLIB LOCAL_LDFLAGS += -lz diff --git a/tests/Makefile b/tests/Makefile index 0bed6b191..9698b8016 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -25,12 +25,6 @@ LOCAL_CFLAGS += $(patsubst -I../3rdparty/%, -I../crypto/3rdparty/%, $(THIRDPARTY # on non-POSIX platforms. LOCAL_CFLAGS += -D_POSIX_C_SOURCE=200809L -ifndef SHARED -DEP=$(CRYPTO)libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a -else -DEP=$(CRYPTO)libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT) -endif - ifdef DEBUG LOCAL_CFLAGS += -g3 endif @@ -56,6 +50,12 @@ SHARED_SUFFIX= PYTHON ?= python2 endif +ifndef SHARED +DEP=$(CRYPTO)libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a +else +DEP=$(CRYPTO)libmbedcrypto.$(DLEXT) ../library/libmbedx509.$(DLEXT) ../library/libmbedtls.$(DLEXT) +endif + # Zlib shared library extensions: ifdef ZLIB LOCAL_LDFLAGS += -lz