From 73a5ff1fb6f005326c8b0ea5857107f7dd3fe369 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 2 Jun 2022 12:02:41 +0100 Subject: [PATCH] Use only TFLAGS, get rid of EXTRA --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c3c80e6b..a2b5bfc7 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ ASAN_OPTIONS ?= detect_leaks=1 EXAMPLES := $(dir $(wildcard examples/*/Makefile)) examples/stm32/nucleo-f746zg-baremetal PREFIX ?= /usr/local VERSION ?= $(shell cut -d'"' -f2 src/version.h) -COMMON_CFLAGS ?= $(WARN) $(INCS) $(DEFS) -DMG_ENABLE_IPV6=$(IPV6) $(TFLAGS) $(EXTRA) +COMMON_CFLAGS ?= $(WARN) $(INCS) $(DEFS) -DMG_ENABLE_IPV6=$(IPV6) $(TFLAGS) CFLAGS ?= $(OPTS) $(ASAN) $(COMMON_CFLAGS) VALGRIND_CFLAGS ?= $(VALGRIND_OPTS) $(COMMON_CFLAGS) VALGRIND_RUN ?= valgrind --tool=memcheck --gen-suppressions=all --leak-check=full --show-leak-kinds=all --leak-resolution=high --track-origins=yes --error-exitcode=1 --exit-on-first-error=yes @@ -71,7 +71,7 @@ unpacked: $(CC) -I. mongoose.c test/unit_test.c -o $@ fuzzer: mongoose.c mongoose.h Makefile test/fuzz.c - clang++ mongoose.c test/fuzz.c $(WARN) $(INCS) $(TFLAGS) $(EXTRA) -DMG_ENABLE_LINES -fsanitize=fuzzer,signed-integer-overflow,address -Wno-deprecated -Wno-vla-extension -o $@ + clang++ mongoose.c test/fuzz.c $(WARN) $(INCS) $(TFLAGS) -DMG_ENABLE_LINES -fsanitize=fuzzer,signed-integer-overflow,address -Wno-deprecated -Wno-vla-extension -o $@ fuzz: fuzzer $(RUN) ./fuzzer