mirror of https://github.com/n7tae/new-xlxd.git
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.
25 lines
463 B
25 lines
463 B
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)
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
|
|
|
|
.cpp.o:
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
rm *.o
|
|
|
|
install:
|
|
mkdir -p /xlxd
|
|
cp ./xlxd /xlxd/
|
|
cp -i ../config/xlxd.blacklist /xlxd/
|
|
cp -i ../config/xlxd.whitelist /xlxd/
|
|
cp -i ../config/xlxd.interlink /xlxd/
|