2023-05-16 21:44:25 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-05-16 06:38:05 +00:00
|
|
|
CC ?= cc
|
2023-05-16 21:44:25 +00:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
INSTALL ?= install
|
2023-05-16 06:35:53 +00:00
|
|
|
CFLAGS ?= -Os -Wall -Wextra -Werror -pedantic
|
2023-05-16 21:44:25 +00:00
|
|
|
|
|
|
|
spkmodem-recv:
|
2023-05-16 06:35:53 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $@.c
|
2023-05-16 21:44:25 +00:00
|
|
|
install: spkmodem-recv
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
$(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/
|