Created
September 3, 2017 18:01
-
-
Save nhatbui/9321cb9b0dcfc6fe8ca8e3318ce3ba1a to your computer and use it in GitHub Desktop.
Mac OSX Makefile for asio chat example http://think-async.com/Asio/asio-1.10.6/doc/asio/examples/cpp11_examples.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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