Makefile 318 B

1234567891011121314
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. CC ?= cc
  3. PREFIX ?= /usr/local
  4. INSTALL ?= install
  5. CFLAGS ?= -Os -Wall -Wextra -Werror -pedantic
  6. spkmodem-recv:
  7. $(CC) $(CFLAGS) -o $@ $@.c
  8. install: spkmodem-recv
  9. $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin/
  10. $(INSTALL) $< -t $(DESTDIR)$(PREFIX)/bin/
  11. clean:
  12. rm -f spkmodem-recv