diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-16 16:59:17 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | 120241f1cfdf1565ee72554cd5f269d6c56092b0 (patch) | |
| tree | d71314948347c8386a9c3c6a071ca07bee728a02 /util/nvmutil/Makefile | |
| parent | c46a634288b736eed85a2a1024207e578da53c9c (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 |
