parent
89846017ec
commit
c4f3dfae3a
@ -0,0 +1,22 @@
|
||||
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
|
||||
|
Loading…
Reference in new issue