M1-nw-project/Makefile

17 lines
331 B
Makefile

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