Skip to content

Instantly share code, notes, and snippets.

@nhatbui
Created September 3, 2017 18:01
Show Gist options
  • Save nhatbui/9321cb9b0dcfc6fe8ca8e3318ce3ba1a to your computer and use it in GitHub Desktop.
Save nhatbui/9321cb9b0dcfc6fe8ca8e3318ce3ba1a to your computer and use it in GitHub Desktop.
COMPILER=clang++
CPP_FLAGS=-D ASIO_STANDALONE -std=c++11 -stdlib=libc++
INCLUDES=-I/path/to/asio-1.10.6/include
all: client server
client: chat_client.cpp
$(COMPILER) $(CPP_FLAGS) $(INCLUDES) -o $@ $<
server: chat_server.cpp
$(COMPILER) $(CPP_FLAGS) $(INCLUDES) -o $@ $<
clean:
rm -f server client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment