Skip to content

Instantly share code, notes, and snippets.

@shafreeck
Created December 17, 2010 07:38
Show Gist options
  • Save shafreeck/744626 to your computer and use it in GitHub Desktop.
Save shafreeck/744626 to your computer and use it in GitHub Desktop.
Makefile example
all:hello test1 test2 test3
hello:hello.o
g++ -o hello hello.o
hello.o:hello.cc
g++ -c -o hello.o hello.cc
clean:
rm *.o hello
install:
cp hello /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment