mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 23:24:11 +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
|
CC?=cc
|
||||||
CSTD?=-std=c90
|
CSTD?=-std=c90
|
||||||
WERROR?=-Werror
|
WERROR?=
|
||||||
CWARN?=-Wall -Wextra -pedantic
|
CWARN?=-Wall -Wextra -pedantic
|
||||||
COPT?=-Os
|
COPT?=-Os
|
||||||
CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD)
|
CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD)
|
||||||
@@ -18,7 +18,7 @@ PROG=nvmutil
|
|||||||
all: $(PROG)
|
all: $(PROG)
|
||||||
|
|
||||||
$(PROG): nvmutil.c
|
$(PROG): nvmutil.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG)
|
$(CC) $(CFLAGS) $(WERROR) $(LDFLAGS) nvmutil.c -o $(PROG)
|
||||||
|
|
||||||
install: $(PROG)
|
install: $(PROG)
|
||||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user