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>
This commit is contained in:
Leah Rowe
2026-03-16 16:54:17 +00:00
parent 849a73012e
commit 4437e41b38

View File

@@ -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