make: support "make ssl-opt" to just build what ssl-opt.sh needs

This also suffices for compat.sh.

Include the sample programs in this build. They aren't tested by ssl-opt.sh
yet, but they soon will be.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2024-09-14 13:05:51 +02:00
parent b63064854b
commit d001f58c32
2 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,9 @@ no_test: programs
programs: lib mbedtls_test
$(MAKE) -C programs
ssl-opt: lib mbedtls_test
$(MAKE) -C programs ssl-opt
lib:
$(MAKE) -C library

View File

@ -116,6 +116,12 @@ ifndef WINDOWS
all: fuzz
endif
SSL_OPT_APPS = $(filter ssl/%,$(APPS))
SSL_OPT_APPS += test/query_compile_time_config test/udp_proxy
# Just the programs needed to run ssl-opt.sh (and compat.sh)
ssl-opt: $(patsubst %,%$(EXEXT),$(SSL_OPT_APPS))
.PHONY: ssl-opt
fuzz: ${MBEDTLS_TEST_OBJS}
$(MAKE) -C fuzz