Skip to content

Instantly share code, notes, and snippets.

@xiaohan2012
Created September 20, 2017 10:17
Show Gist options
  • Save xiaohan2012/ab09053848e119b9243783c4b84549f1 to your computer and use it in GitHub Desktop.
Save xiaohan2012/ab09053848e119b9243783c4b84549f1 to your computer and use it in GitHub Desktop.
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)/*~
@xiaohan2012
Copy link
Author

make file for cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment