Skip to content

Instantly share code, notes, and snippets.

@VincentTam
Created January 30, 2014 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VincentTam/8703067 to your computer and use it in GitHub Desktop.
Save VincentTam/8703067 to your computer and use it in GitHub Desktop.
My minimun working example of a makefile.
CXX = g++
SRCS = foo.cpp
default: $(SRCS:.cpp=.out)
.cpp.out:
$(CXX) $< -o $@
clean:
rm -rf *.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment