diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 16:56:01 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | c46a634288b736eed85a2a1024207e578da53c9c (patch) | |
| tree | 15e47e8362786ef1472a5dc5b327c9d89a33be10 /util/nvmutil/Makefile | |
| parent | 71ce22a93849d1ffba568bdaeb7da63b578214d4 (diff) | |
nope. put -Werror in the makefile
not compiling without it is a bug
don't let the default exclude it
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/Makefile')
| -rw-r--r-- | util/nvmutil/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile index 2046e9eb..d04b1fbf 100644 --- a/util/nvmutil/Makefile +++ b/util/nvmutil/Makefile @@ -4,21 +4,22 @@ CC?=cc CSTD?=-std=c90 -WERROR?= +WERROR?=-Werror CWARN?=-Wall -Wextra -pedantic COPT?=-Os -CFLAGS?=-I. $(COPT) $(CWARN) $(CSTD) +CFLAGS?=$(COPT) $(CWARN) $(CSTD) LDFLAGS?= DESTDIR?= PREFIX?=/usr/local INSTALL?=install +LDIR?=-I. PROG=nvmutil all: $(PROG) $(PROG): nvmutil.c - $(CC) $(CFLAGS) $(WERROR) $(LDFLAGS) nvmutil.c -o $(PROG) + $(CC) $(LDIR) $(WERROR) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG) install: $(PROG) $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin |
