add makefile

This commit is contained in:
Chatchai Jantaraprim
2022-10-09 20:40:04 +07:00
parent 0e8010d89d
commit 656ce6b109
2 changed files with 13 additions and 0 deletions

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
ALL: hello
hello.o: hello.c
gcc -Wall -c hello.c
hello: hello.o
gcc -o hello hello.o
clean:
rm -f hello.o hello
.PHONY: clean