M1-nw-project/Makefile

18 lines
290 B
Makefile
Raw Normal View History

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