You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
466 B

GIT_VERSION := "$(shell git describe --abbrev=6 --dirty --always --tags)"
PREFIX=/usr/local/sbin
CC = g++
CFLAGS = -O2 -pipe -fomit-frame-pointer -Wall -s -pie -fpie
LFLAGS = -lboost_system
VERSION_FLAGS = -DVERSION=\"$(GIT_VERSION)\"
.PHONY: all clean install
all: clean blacklist
blacklist:blacklist.cpp
$(CC) $(CFLAGS) $(LFLAGS) $(VERSION_FLAGS) -o $@ $^
clean:
rm -f blacklist
install:
install -D -o root -g root -m 750 blacklist $(PREFIX)/blacklist