diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 16:56:01 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 16:57:53 +0000 |
| commit | f05776f5ffcb8905bbbe1f70fad6ca1ed11d393d (patch) | |
| tree | e90ca96c70ba866dbc168f261430dc3020545542 /util/nvmutil/Makefile | |
| parent | 4437e41b38c3335c88841dea780f7a2421dbd138 (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 |
