From: Scott Worley Date: Sat, 6 May 2017 06:23:28 +0000 (-0700) Subject: A Makefile X-Git-Url: http://git.scottworley.com/overonion/commitdiff_plain/7ed3669a47ef8dd3aeaa8d9757a97d16d6f5e085?ds=sidebyside A Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fee4ea9 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC = gcc +CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow + +all: reverse + +clean: + -rm *.o reverse + +distclean: clean + -rm deps.makefile deps.makefile.bak + +depend: *.c + makedepend -f- $^ > deps.makefile + +.PHONY: clean distclean depend + +reverse: reverse.o + $(CC) -o $@ $^ $(CFLAGS) + +%.o: %.c + $(CC) -c -o $@ $< $(CFLAGS) + +-include deps.makefile