27 lines
463 B
Makefile
27 lines
463 B
Makefile
DESTDIR ?=
|
|
PREFIX ?= /usr/local
|
|
EXEC_PREFIX ?= $(PREFIX)
|
|
BINDIR ?= $(DESTDIR)$(EXEC_PREFIX)/bin
|
|
|
|
CFLAGS += -std=c11 -Os -g -Wall -Wextra -pedantic
|
|
CPPFLAGS +=
|
|
LDFLAGS +=
|
|
|
|
all: lewdfingerd
|
|
|
|
lewdfingerd: lewdfingerd.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
|
|
|
|
.PHONY: all install uninstall clean distclean
|
|
|
|
install: all
|
|
mkdir -p $(BINDIR)
|
|
install lewdfingerd $(BINDIR)
|
|
|
|
uninstall:
|
|
rm -f $(BINDIR)/lewdfingerd
|
|
|
|
clean:
|
|
rm -f lewdfingerd
|
|
|
|
distclean: clean
|