14 lines
318 B
Makefile
14 lines
318 B
Makefile
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
CC ?= cc
|
||
|
PREFIX ?= /usr/local
|
||
|
INSTALL ?= install
|
||
|
CFLAGS ?= -Os -Wall -Wextra -Werror -pedantic
|
||
|
|
||
|
spkmodem-recv:
|
||
|
$(CC) $(CFLAGS) -o $@ $@.c
|
||
|
install: spkmodem-recv
|
||
|
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
|
||
|
$(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/
|
||
|
clean:
|
||
|
rm -f spkmodem-recv
|