summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-16 16:59:17 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-16 16:59:17 +0000
commit8b887eb7b2e7819104b6a19f770229ee89d366ae (patch)
tree3a452f454231502f4c090cb7680e7bd37c3b167e /util
parentf05776f5ffcb8905bbbe1f70fad6ca1ed11d393d (diff)
util/nvmutil: tidy up makefile options
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile
index d04b1fbf..025e87e1 100644
--- a/util/nvmutil/Makefile
+++ b/util/nvmutil/Makefile
@@ -7,19 +7,21 @@ CSTD?=-std=c90
WERROR?=-Werror
CWARN?=-Wall -Wextra -pedantic
COPT?=-Os
-CFLAGS?=$(COPT) $(CWARN) $(CSTD)
+CFLAGS?=$(CWARN) $(CSTD)
LDFLAGS?=
DESTDIR?=
PREFIX?=/usr/local
INSTALL?=install
LDIR?=-I.
+OPTS=$(LDIR) $(COPT) $(WERROR) $(CFLAGS) $(LDFLAGS)
+
PROG=nvmutil
all: $(PROG)
$(PROG): nvmutil.c
- $(CC) $(LDIR) $(WERROR) $(CFLAGS) $(LDFLAGS) nvmutil.c -o $(PROG)
+ $(CC) $(OPTS) nvmutil.c -o $(PROG)
install: $(PROG)
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin