blacklist/Makefile

23 lines
466 B
Makefile
Raw Permalink Normal View History

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