Add make samples and shebang for make

This commit is contained in:
Ted Nyman
2013-08-03 13:21:58 -07:00
parent f5ede0d0f9
commit 76128ccb37
2 changed files with 19 additions and 0 deletions

16
samples/Makefile/Makefile Normal file
View File

@@ -0,0 +1,16 @@
all: hello
hello: main.o factorial.o hello.o
g++ main.o factorial.o hello.o -o hello
main.o: main.cpp
g++ -c main.cpp
factorial.o: factorial.cpp
g++ -c factorial.cpp
hello.o: hello.cpp
g++ -c hello.cpp
clean:
rm -rf *o hello

View File

@@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
ls -l