2016-11-20 00:16:13 +01:00
|
|
|
CXX=g++
|
|
|
|
CXXFLAGS=-Wall -Wextra -Werror -pedantic -std=c++14 -O2
|
|
|
|
CXXLIBS=-lpthread
|
|
|
|
|
2016-11-23 23:49:48 +01:00
|
|
|
OBJS = Bytes.o main.o protocol.o neighbours.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)
|