Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Created September 15, 2012 03:11
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 juanpabloaj/3726212 to your computer and use it in GitHub Desktop.
Save juanpabloaj/3726212 to your computer and use it in GitHub Desktop.
compile *.cpp
sources = $(wildcard *.cpp)
files = $(sources:.cpp=)
all: $(files)
%: %.cpp
g++ -o $@ $<
clean:
rm $(files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment