From f05776f5ffcb8905bbbe1f70fad6ca1ed11d393d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 16 Mar 2026 16:56:01 +0000 Subject: 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 --- util/nvmutil/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'util') 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 -- cgit v1.2.1