Created
September 20, 2017 10:17
-
-
Save xiaohan2012/ab09053848e119b9243783c4b84549f1 to your computer and use it in GitHub Desktop.
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
CXX=g++ | |
CPPFLAGS=-std=c++11 -O2 -Wall | |
ODIR=obj | |
DEPS=-I boost | |
%: $(ODIR)/%.o | |
$(CXX) -o $@ $^ $(CPPFLAGS) | |
$(ODIR)/%.o: %.cpp $(DEPS) | |
$(CXX) -c -o $@ $< $(CPPFLAGS) | |
.PHONY: clean | |
clean: | |
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
make file for cpp