aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-09-01 07:50:02 +0200
committerJohannes Berg <johannes.berg@intel.com>2023-12-21 10:29:44 +0100
commit44686ac3e7b536e905c3749814e4eb0e7e210440 (patch)
treedbf6e04d38c4f630d88fcf2b33b04ad00916a36c
parente2224c729840cc33c6ea89ba5e91b69f79c88e85 (diff)
downloadiw-44686ac3e7b536e905c3749814e4eb0e7e210440.tar.gz
iw: allow extra cflags
We can override the entirety of CFLAGS from the make command line, but not add e.g. -Werror. Append a new EXTRA_CFLAGS to make that possible. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2fb8db8..17be33f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-a
CFLAGS += -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter
CFLAGS += -Wdeclaration-after-statement
CFLAGS += $(CFLAGS_EVAL)
+CFLAGS += $(EXTRA_CFLAGS)
_OBJS := $(sort $(patsubst %.c,%.o,$(wildcard *.c)))
VERSION_OBJS := $(filter-out version.o, $(_OBJS))