2015-12-29 17:45:47 -05:00
|
|
|
CC=g++
|
|
|
|
CFLAGS=-c -std=c++11 -pthread
|
|
|
|
LDFLAGS=-std=c++11 -pthread
|
|
|
|
SOURCES=$(wildcard *.cpp)
|
|
|
|
OBJECTS=$(SOURCES:.cpp=.o)
|
|
|
|
EXECUTABLE=xlxd
|
|
|
|
|
|
|
|
all: $(SOURCES) $(EXECUTABLE)
|
2016-01-02 10:02:58 -05:00
|
|
|
|
2016-02-11 12:51:12 -05:00
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
2015-12-29 17:45:47 -05:00
|
|
|
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
|
2016-02-11 12:51:12 -05:00
|
|
|
clean:
|
2017-08-24 05:05:31 -04:00
|
|
|
$(RM) $(EXECUTABLE) *.o
|
2016-02-11 12:51:12 -05:00
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p /xlxd
|
2017-11-11 17:22:54 -05:00
|
|
|
cp -f $(EXECUTABLE) /xlxd/
|
2017-11-11 17:24:22 -05:00
|
|
|
[ -f /xlxd/xlxd.blacklist ] && \
|
|
|
|
cp ../config/xlxd.blacklist /xlxd/xlxd.blacklist.sample || \
|
|
|
|
cp ../config/xlxd.blacklist /xlxd/xlxd.blacklist
|
|
|
|
[ -f /xlxd/xlxd.whitelist ] && \
|
|
|
|
cp ../config/xlxd.whitelist /xlxd/xlxd.whitelist.sample || \
|
|
|
|
cp ../config/xlxd.whitelist /xlxd/xlxd.whitelist
|
|
|
|
[ -f /xlxd/xlxd.interlink ] && \
|
|
|
|
cp ../config/xlxd.interlink /xlxd/xlxd.interlink.sample || \
|
|
|
|
cp ../config/xlxd.interlink /xlxd/xlxd.interlink
|