1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-07 16:26:06 -05:00
xlxd/src/makefile
2016-12-17 14:01:08 +01:00

25 lines
466 B
Makefile

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/