summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d053db3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CC = gcc
+LIBS = `pkg-config --cflags --libs libgcrypt`
+CFLAGS = -O3 -march=native -flto -Wall
+OBJ = main.o
+
+%.o: %.c
+ $(CC) -c -o $@ $< $(CFLAGS) $(LIBS)
+
+decrypt: $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+
+clean:
+ rm decrypt $(OBJ)