diff --git a/programs/Makefile b/programs/Makefile index 50be1763e1..4bf11062c6 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -1,8 +1,4 @@ MBEDTLS_TEST_PATH = ../tests -# Support code used by test programs and test builds, excluding TLS-specific -# code which is in the src/test_helpers subdirectory. -MBEDTLS_TEST_OBJS = $(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/src/*.c ${MBEDTLS_TEST_PATH}/src/drivers/*.c)) - include ../scripts/common.make ifeq ($(shell uname -s),Linux) @@ -11,6 +7,10 @@ else DLOPEN_LDFLAGS ?= endif +# Support code used by test programs and test builds, excluding TLS-specific +# code which is in the src/test_helpers subdirectory. +MBEDTLS_TEST_OBJS = $(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/src/*.c ${MBEDTLS_TEST_PATH}/src/drivers/*.c)) + DEP=${MBEDLIBS} ${MBEDTLS_TEST_OBJS} # Only build the dlopen test in shared library builds, and not when building