Skip to content

Instantly share code, notes, and snippets.

@tanyuan
Created January 7, 2018 18:35
Show Gist options
  • Save tanyuan/5633abe128b36fe16e85bf18f2d375c6 to your computer and use it in GitHub Desktop.
Save tanyuan/5633abe128b36fe16e85bf18f2d375c6 to your computer and use it in GitHub Desktop.
Makefile template (simple)
CXX=g++
CFLAGS=-g -Wall
INCLUDE=
LINK=
all: program
%: %.cpp
$(CXX) $(CFLAGS) $(INCLUDE) $< -o $@ $(LINK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment