mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
19e0249a8a
a bit pedantic. but that's my intention. for backwards compatibility with older systems. this flag means: create the directory. on modern versions on all systems, it's the default behaviour. Signed-off-by: Leah Rowe <leah@libreboot.org>
31 lines
622 B
Makefile
31 lines
622 B
Makefile
# SPDX-License-Identifier: MIT
|
|
# SPDX-FileCopyrightText: 2022,2026 Leah Rowe <leah@libreboot.org>
|
|
# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
|
|
|
|
CC?=cc
|
|
CFLAGS?=-Os -Wall -Wextra -Werror -pedantic -std=c90
|
|
DESTDIR?=
|
|
PREFIX?=/usr/local
|
|
INSTALL?=install
|
|
|
|
PROG=spkmodem-recv
|
|
|
|
all: $(PROG)
|
|
|
|
$(PROG): spkmodem-recv.c
|
|
$(CC) $(CFLAGS) spkmodem-recv.c -o $(PROG)
|
|
|
|
install: $(PROG)
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin/
|
|
install -c $(PROG) $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
|
|
|
|
clean:
|
|
rm -f $(PROG)
|
|
|
|
distclean: clean
|
|
|
|
.PHONY: all install uninstall clean distclean
|