mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user