Created
December 13, 2019 05:48
-
-
Save duskvirkus/86819bdf628b30d4b580e5dfdf85b7ec to your computer and use it in GitHub Desktop.
single c++ file makefile
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
CXX=g++ | |
CXXFLAGS=-Wall -Wextra -Wpedantic -O3 -std=c++17 -Wfatal-errors -fno-diagnostics-show-option -Walloc-zero -Wold-style-cast -Wduplicated-branches -Wctor-dtor-privacy | |
main: main.o | |
$(CXX) $(CXXFLAGS) main.o -o main | |
main.o: main.cc | |
$(CXX) $(CXXFLAGS) main.cc -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment