summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
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