X-Git-Url: http://git.scottworley.com/overonion/blobdiff_plain/9571ed09bf5c97e104eae36ed323c2cd2d4c09b7..7ed3669a47ef8dd3aeaa8d9757a97d16d6f5e085:/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