Last active
October 23, 2016 21:51
-
-
Save illescasDaniel/9b5fdad6a869dd34db03d0a06e8f3ba4 to your computer and use it in GitHub Desktop.
Makefile for modern C++
This file contains 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
## 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