mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-25 09:02:48 +00:00
Merge pull request #8667 from gilles-peskine-arm/pthread-link-auto-make-followup
Minor cleanups to common.make
This commit is contained in:
commit
3ca93e5d25
@ -1,9 +1,4 @@
|
|||||||
MBEDTLS_TEST_PATH = ../tests
|
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))
|
|
||||||
|
|
||||||
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I$(MBEDTLS_TEST_PATH)/include -I../include -D_FILE_OFFSET_BITS=64
|
|
||||||
include ../scripts/common.make
|
include ../scripts/common.make
|
||||||
|
|
||||||
ifeq ($(shell uname -s),Linux)
|
ifeq ($(shell uname -s),Linux)
|
||||||
|
@ -5,7 +5,7 @@ WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
|||||||
WARNING_CXXFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
WARNING_CXXFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../tests/include -I../include -D_FILE_OFFSET_BITS=64
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I$(MBEDTLS_TEST_PATH)/include -I../include -D_FILE_OFFSET_BITS=64
|
||||||
LOCAL_CXXFLAGS = $(WARNING_CXXFLAGS) -I../include -I../tests/include -D_FILE_OFFSET_BITS=64
|
LOCAL_CXXFLAGS = $(WARNING_CXXFLAGS) -I../include -I../tests/include -D_FILE_OFFSET_BITS=64
|
||||||
LOCAL_LDFLAGS = ${MBEDTLS_TEST_OBJS} \
|
LOCAL_LDFLAGS = ${MBEDTLS_TEST_OBJS} \
|
||||||
-L../library \
|
-L../library \
|
||||||
@ -35,7 +35,7 @@ endif
|
|||||||
## Remove the preprocessor symbols that are set in the current configuration
|
## Remove the preprocessor symbols that are set in the current configuration
|
||||||
## from PREPROCESSOR_INPUT. Also normalize whitespace.
|
## from PREPROCESSOR_INPUT. Also normalize whitespace.
|
||||||
## Example:
|
## Example:
|
||||||
## $(call remove_set_options,MBEDTLS_FOO MBEDTLS_BAR)
|
## $(call remove_enabled_options,MBEDTLS_FOO MBEDTLS_BAR)
|
||||||
## This expands to an empty string "" if MBEDTLS_FOO and MBEDTLS_BAR are both
|
## This expands to an empty string "" if MBEDTLS_FOO and MBEDTLS_BAR are both
|
||||||
## enabled, to "MBEDTLS_FOO" if MBEDTLS_BAR is enabled but MBEDTLS_FOO is
|
## enabled, to "MBEDTLS_FOO" if MBEDTLS_BAR is enabled but MBEDTLS_FOO is
|
||||||
## disabled, etc.
|
## disabled, etc.
|
||||||
@ -105,3 +105,15 @@ ifndef WINDOWS
|
|||||||
else
|
else
|
||||||
for %f in ($(subst /,\,$(GENERATED_FILES))) if exist %f del /Q /F %f
|
for %f in ($(subst /,\,$(GENERATED_FILES))) if exist %f del /Q /F %f
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Auxiliary modules used by tests and some sample programs
|
||||||
|
MBEDTLS_CORE_TEST_OBJS = $(patsubst %.c,%.o,$(wildcard \
|
||||||
|
${MBEDTLS_TEST_PATH}/src/*.c \
|
||||||
|
${MBEDTLS_TEST_PATH}/src/drivers/*.c \
|
||||||
|
))
|
||||||
|
# Additional auxiliary modules for TLS testing
|
||||||
|
MBEDTLS_TLS_TEST_OBJS = $(patsubst %.c,%.o,$(wildcard \
|
||||||
|
${MBEDTLS_TEST_PATH}/src/test_helpers/*.c \
|
||||||
|
))
|
||||||
|
|
||||||
|
MBEDTLS_TEST_OBJS = $(MBEDTLS_CORE_TEST_OBJS) $(MBEDTLS_TLS_TEST_OBJS)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
MBEDTLS_TEST_PATH = .
|
||||||
include ../scripts/common.make
|
include ../scripts/common.make
|
||||||
|
|
||||||
# Set this to -v to see the details of failing test cases
|
# Set this to -v to see the details of failing test cases
|
||||||
@ -109,10 +110,6 @@ BINARIES := $(addsuffix $(EXEXT),$(APPS))
|
|||||||
|
|
||||||
all: $(BINARIES)
|
all: $(BINARIES)
|
||||||
|
|
||||||
MBEDTLS_TEST_PATH = .
|
|
||||||
MBEDTLS_TEST_OBJS = $(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/src/*.c ${MBEDTLS_TEST_PATH}/src/drivers/*.c))
|
|
||||||
MBEDTLS_TEST_OBJS += $(patsubst %.c,%.o,$(wildcard ${MBEDTLS_TEST_PATH}/src/test_helpers/*.c))
|
|
||||||
|
|
||||||
mbedtls_test: $(MBEDTLS_TEST_OBJS)
|
mbedtls_test: $(MBEDTLS_TEST_OBJS)
|
||||||
|
|
||||||
TEST_OBJS_DEPS = $(wildcard include/test/*.h include/test/*/*.h)
|
TEST_OBJS_DEPS = $(wildcard include/test/*.h include/test/*/*.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user