]> git.scottworley.com Git - overonion/commitdiff
A Makefile
authorScott Worley <scottworley@scottworley.com>
Sat, 6 May 2017 06:23:28 +0000 (23:23 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 20 Oct 2017 08:26:41 +0000 (01:26 -0700)
Makefile [new file with mode: 0644]

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