1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-16 13:11:45 -05:00
xlxd/src/makefile

24 lines
408 B
Makefile
Raw Normal View History

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)
$(EXECUTABLE): $(OBJECTS)
2015-12-29 17:45:47 -05:00
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm *.o
install:
mkdir -p /xlxd
cp ./xlxd /xlxd/
cp ../config/xlxd.blacklist /xlxd/
cp ../config/xlxd.whitelist /xlxd/