Skip to content

Instantly share code, notes, and snippets.

@illescasDaniel
Last active October 23, 2016 21:51
Show Gist options
  • Save illescasDaniel/9b5fdad6a869dd34db03d0a06e8f3ba4 to your computer and use it in GitHub Desktop.
Save illescasDaniel/9b5fdad6a869dd34db03d0a06e8f3ba4 to your computer and use it in GitHub Desktop.
Makefile for modern C++
## FLAGS ##
Libraries = -L lib
Headers = -I include
Sources = main.cpp $(Headers) $(Libraries)
CompilerFlags = -O3 -Wall
OutputName = test
## TARGETS ##
all:
@g++ -std=c++1z $(CompilerFlags) $(Sources) -o $(OutputName)
clean:
@rm -i $(OutputName)*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment