2016-11-20 00:16:13 +01:00
|
|
|
CXX=g++
|
2016-11-26 20:42:00 +01:00
|
|
|
CXXFLAGS=-Wall -Wextra -Werror -pedantic -std=c++14 -O2
|
2016-11-20 00:16:13 +01:00
|
|
|
CXXLIBS=-lpthread
|
|
|
|
|
2016-11-26 16:20:20 +01:00
|
|
|
OBJS = Bytes.o main.o protocol.o neighbours.o packetParser.o configFile.o \
|
|
|
|
dataStore.o flooder.o
|
2016-11-20 00:16:13 +01:00
|
|
|
TARGET = jeanhubert
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CXX) $(CXXLIBS) $(CXXFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OBJS) $(TARGET)
|