minimal Makefile
authorHelmut Grohne <helmut@subdivi.de>
Sun, 24 Mar 2013 13:38:46 +0000 (14:38 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Sun, 24 Mar 2013 13:38:46 +0000 (14:38 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..a9af731
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+CC ?= clang
+CFLAGS ?= -W -Wall -Wextra -pedantic
+
+%.o:%.c
+       $(CC) $(CFLAGS) -c $< -o $@
+
+build:ssdeep
+clean:
+       rm -f ssdeep ssdeep.o fuzzy.o
+
+ssdeep:ssdeep.o fuzzy.o
+       $(CC) $(CFLAGS) $^ -o $@
+ssdeep.o:ssdeep.c fuzzy.h
+fuzzy.o:fuzzy.c fuzzy.h