From 656ce6b10983da53e1a0b71f4829d8bfd694efaa Mon Sep 17 00:00:00 2001 From: Chatchai Jantaraprim Date: Sun, 9 Oct 2022 20:40:04 +0700 Subject: [PATCH] add makefile --- .gitignore | 1 + Makefile | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index ce01362..2db3799 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ hello +*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..47e8e57 --- /dev/null +++ b/Makefile @@ -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