]> git.scottworley.com Git - overonion/blobdiff - Makefile
A Makefile
[overonion] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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