summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-15 21:30:16 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commit7f14693e6cea65e0e769817978be9b7d53cf1929 (patch)
treee8c75fd60f1c827da665e94af3bfc1a603f24e67 /util
parent824fade5e9cff03406e155d83e11a7c4a5a041e6 (diff)
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>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile
index 719e1c1e..c89b7228 100644
--- a/util/nvmutil/Makefile
+++ b/util/nvmutil/Makefile
@@ -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