17 lines
303 B
Makefile
17 lines
303 B
Makefile
CXX=g++
|
|
CXXFLAGS=-Wall -Wextra -Werror -pedantic -std=c++14 -O2
|
|
CXXLIBS=-lpthread
|
|
|
|
OBJS = Bytes.o main.o protocol.o neighbours.o
|
|
TARGET = jeanhubert
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CXX) $(CXXLIBS) $(CXXFLAGS) $^ -o $@
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -rf $(OBJS) $(TARGET)
|