summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/libreboot-utils/Makefile')
-rw-r--r--util/libreboot-utils/Makefile60
1 files changed, 0 insertions, 60 deletions
diff --git a/util/libreboot-utils/Makefile b/util/libreboot-utils/Makefile
deleted file mode 100644
index f19612d3..00000000
--- a/util/libreboot-utils/Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
-# SPDX-License-Identifier: MIT
-# Copyright (c) 2022,2026 Leah Rowe <leah@libreboot.org>
-# Copyright (c) 2023 Riku Viitanen <riku.viitanen@protonmail.com>
-
-CC = cc
-CFLAGS = -Os -Wall -Wextra -std=c99 -pedantic
-LDFLAGS =
-PREFIX = /usr/local
-DESTDIR =
-INSTALL = install
-
-PROGS = nvmutil mkhtemp lottery
-
-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 \
- lib/mkhtemp.o \
- lib/rand.o
-
-OBJS_NVMUTIL = nvmutil.o $(LIB_OBJS)
-OBJS_MKHTEMP = mkhtemp.o lib/file.o lib/string.o lib/num.o lib/mkhtemp.o lib/rand.o
-OBJS_LOTTERY = lottery.o lib/file.o lib/string.o lib/num.o lib/mkhtemp.o lib/rand.o
-
-all: $(PROGS)
-
-nvmutil: $(OBJS_NVMUTIL)
- $(CC) $(CFLAGS) $(OBJS_NVMUTIL) -o $@ $(LDFLAGS)
-
-mkhtemp: $(OBJS_MKHTEMP)
- $(CC) $(CFLAGS) $(OBJS_MKHTEMP) -o $@ $(LDFLAGS)
-
-lottery: $(OBJS_LOTTERY)
- $(CC) $(CFLAGS) $(OBJS_LOTTERY) -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
-
-uninstall:
- for p in $(PROGS); do \
- rm -f $(DESTDIR)$(PREFIX)/bin/$$p; \
- done
-
-clean:
- rm -f $(PROGS) *.o lib/*.o
-
-distclean: clean