Last active
April 3, 2020 21:51
-
-
Save pitcer/2fe16e2af3798cac78092ad935e37287 to your computer and use it in GitHub Desktop.
Makefile for C++
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 = g++ | |
| COMPILER_FLAGS = \ | |
| -std=c++17 \ | |
| -Wall \ | |
| -Werror \ | |
| -Wextra \ | |
| -pedantic \ | |
| -Wpedantic \ | |
| -Wold-style-cast \ | |
| -finline-functions \ | |
| -ftree-vectorize \ | |
| -funroll-loops \ | |
| -Ofast | |
| OUTPUT_NAME = binary | |
| SOURCE = *.cpp | |
| default: all | |
| all: | |
| ${COMPILER} ${COMPILER_FLAGS} -o ${OUTPUT_NAME} ${SOURCE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment