summaryrefslogtreecommitdiff
path: root/util/nvmutil/Makefile
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-16 16:54:17 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-16 16:54:17 +0000
commit4437e41b38c3335c88841dea780f7a2421dbd138 (patch)
treef793058e22b927a7da555c7e6456628f29b49934 /util/nvmutil/Makefile
parent849a73012eea818e05d6b03ecf427dcdcf8a5867 (diff)
nvmutil makefile: define WERROR but blank it
settting it to -Werror is wrong, should set it not -Werror. however, put the WERROR variable in the make command. that way, i could test with make WERROR=-Werror Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/Makefile')
-rw-r--r--util/nvmutil/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile
index e58c654b..2046e9eb 100644
--- a/util/nvmutil/Makefile
+++ b/util/nvmutil/Makefile
@@ -4,7 +4,7 @@
CC?=cc
CSTD?=-std=c90
-WERROR?=-Werror
+WERROR?=
CWARN?=-Wall -Wextra -pedantic
COPT?=-Os
CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD)
@@ -18,7 +18,7 @@ PROG=nvmutil
all: $(PROG)
$(PROG): nvmutil.c
- $(CC) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG)
+ $(CC) $(CFLAGS) $(WERROR) $(LDFLAGS) nvmutil.c -o $(PROG)
install: $(PROG)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin