diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-21 13:50:54 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-21 13:50:54 +0100 |
| commit | 6d3341c637f07c0ac680e14af4fee3b98db918ca (patch) | |
| tree | 913e025ba6385e724e9f07ca0a74afd7ae0aac97 /util/nvmutil/Makefile | |
| parent | b1b1d2cf0c5af68119213971578d87a3f4f0e109 (diff) | |
nope. use nvmutil from libreboot 26.01
guaranteed not to break on openbsd (tm)
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/Makefile')
| -rw-r--r-- | util/nvmutil/Makefile | 58 |
1 files changed, 16 insertions, 42 deletions
diff --git a/util/nvmutil/Makefile b/util/nvmutil/Makefile index ba93d0ef..b8ec2ad3 100644 --- a/util/nvmutil/Makefile +++ b/util/nvmutil/Makefile @@ -1,50 +1,24 @@ # SPDX-License-Identifier: MIT -# Copyright (c) 2022,2026 Leah Rowe <leah@libreboot.org> -# Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com> +# SPDX-FileCopyrightText: 2022,2025 Leah Rowe <leah@libreboot.org> +# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com> -CC = cc -CFLAGS = -Os -Wall -Wextra -std=c99 -pedantic -LDFLAGS = -PREFIX = /usr/local -DESTDIR = -INSTALL = install +CC?=cc +CFLAGS?=-Os -Wall -Wextra -Werror -pedantic +DESTDIR?= +PREFIX?=/usr/local +INSTALL?=install -PROGS = nvmutil +nvm: nvmutil.c + $(CC) $(CFLAGS) nvmutil.c -o nvm -LIB_OBJS = \ - lib/state.o \ - lib/file.o \ - lib/string.o \ - lib/usage.o \ - lib/command.o \ - lib/num.o \ - lib/io.o \ - lib/checksum.o \ - lib/word.o - -OBJS_NVMUTIL = nvmutil.o $(LIB_OBJS) - -all: $(PROGS) - -nvmutil: $(OBJS_NVMUTIL) - $(CC) $(CFLAGS) $(OBJS_NVMUTIL) -o $@ $(LDFLAGS) - -.c.o: - $(CC) $(CFLAGS) -c $< -o $@ - -install: $(PROGS) - mkdir -p $(DESTDIR)$(PREFIX)/bin - for p in $(PROGS); do \ - $(INSTALL) $$p $(DESTDIR)$(PREFIX)/bin/$$p; \ - chmod 755 $(DESTDIR)$(PREFIX)/bin/$$p; \ - done +install: + $(INSTALL) nvm $(DESTDIR)$(PREFIX)/bin/nvm uninstall: - for p in $(PROGS); do \ - rm -f $(DESTDIR)$(PREFIX)/bin/$$p; \ - done + rm -f $(DESTDIR)$(PREFIX)/bin/nvm -clean: - rm -f $(PROGS) *.o lib/*.o +distclean: + rm -f nvm -distclean: clean +clean: + rm -f nvm |
