diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 16:59:17 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-16 16:59:17 +0000 |
| commit | 8b887eb7b2e7819104b6a19f770229ee89d366ae (patch) | |
| tree | 3a452f454231502f4c090cb7680e7bd37c3b167e /util/nvmutil/Makefile | |
| parent | f05776f5ffcb8905bbbe1f70fad6ca1ed11d393d (diff) | |
util/nvmutil: tidy up makefile options
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/Makefile')
| -rw-r--r-- | util/nvmutil/Makefile | 6 |
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 |
