mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add make samples and shebang for make
This commit is contained in:
16
samples/Makefile/Makefile
Normal file
16
samples/Makefile/Makefile
Normal 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
|
||||
3
samples/Makefile/makefile.script!
Normal file
3
samples/Makefile/makefile.script!
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
ls -l
|
||||
Reference in New Issue
Block a user