Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Created September 15, 2012 03:11
Show Gist options
  • Select an option

  • Save juanpabloaj/3726212 to your computer and use it in GitHub Desktop.

Select an option

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