From cb220837b91371ae01543977e72b24c0dd384bc4 Mon Sep 17 00:00:00 2001 From: cpq Date: Mon, 7 Dec 2020 01:27:44 +0000 Subject: [PATCH] Tuning test --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0701778b..c60d0c59 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ CLANG ?= clang # /usr/local/opt/llvm\@9/bin/clang ASAN_OPTIONS ?= EXAMPLES := $(wildcard examples/*) EXAMPLE_TARGET ?= example -.PHONY: $(EXAMPLES) +.PHONY: ex #$(EXAMPLES) ifeq "$(SSL)" "MBEDTLS" MBEDTLSDIR ?= $(shell "$(brew --cellar mbedtls)/$(brew info mbedtls --json | jq -j .[0].installed[0].version)") -CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLSDIR)/include -I/usr/include/mbedtls +CFLAGS += -DMG_ENABLE_MBEDTLS=1 -I$(MBEDTLSDIR)/include -I/usr/include LDFLAGS ?= -L$(MBEDTLSDIR)/lib -lmbedtls -lmbedcrypto -lmbedx509 endif ifeq "$(SSL)" "OPENSSL" @@ -27,9 +27,8 @@ endif all: mg_prefix cpp test ex vc98 vc2017 linux infer fuzz -ex: $(EXAMPLES) -$(EXAMPLES): - @$(MAKE) -C $@ $(EXAMPLE_TARGET) +ex: + @for X in $(EXAMPLES); do $(MAKE) -C $$X $(EXAMPLE_TARGET); done # Check that all external (exported) symbols have "mg_" prefix mg_prefix: mongoose.c mongoose.h