forbidhosts/Makefile

27 lines
490 B
Makefile
Raw Permalink Normal View History

2019-11-01 19:34:02 +01:00
CC = g++
CFLAGS = -O2 -s -D_GNU_SOURCE -Werror -W -Wall -Wextra -ansi -pedantic
LDLIBS =
PREFIX =
BINDIR = $(PREFIX)/usr/sbin
all: forbidhosts
forbidhosts: forbidhosts.o
$(CC) $(CFLAGS) $(LDLIBS) forbidhosts.o -o forbidhosts
forbidhosts.o: forbidhosts.cpp
$(CC) $(CFLAGS) $(DEFS) -c forbidhosts.cpp
install:
mkdir -p $(BINDIR)
cp forbidhosts $(BINDIR)
@echo "All done!"
uninstall:
@rm -f $(BINDIR)/foridhosts
@echo "All done!"
clean:
rm -f forbidhosts *.o
@echo "All done!"