diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59b32b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +hello diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..225ae01 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +all: hello + +hello: hello.o + gcc -o $@ $< + +%.o: %.c + gcc -Wall -c $< + +clean: + -rm -f hello.o hello + +test: hello + ./$< + +.PHONY: all clean test