CXX = g++ CXXFLAGS = -Wall -Wextra -std=c++11 -O2 -Itermio TARGET = netcatchat .PHONY: all clean all: $(TARGET) clean: rm -f $(TARGET) $(TARGET): netcatchat.cpp termio/libtermio.a $(CXX) -o $@ $^ termio/libtermio.a: git submodule update --init --recursive $(MAKE) -C termio