util/nvmutil: more portable Makefile

-Werror removed, for older compilers

actual warnings still there

-std is configurable now

e.g.

make CSTD=-c90
make CSTD=-c99

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-15 21:30:16 +00:00
parent 824fade5e9
commit 7f14693e6c
+5 -1
View File
@@ -3,7 +3,11 @@
# Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com>
CC?=cc
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic -std=c90
CSTD?=-std=c90
WERROR?=
CWARN?=-Wall -Wextra -pedantic
COPT?=-Os
CFLAGS?=$(COPT) $(CWARN) $(CSTD)
LDFLAGS?=
DESTDIR?=
PREFIX?=/usr/local