summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bf61e16
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+CC = gcc
+CFLAGS = -march=native -Wall -Wpedantic -lcrypto
+SOURCE = onetimebluh
+TARGET = otbluh
+PREFIX = /usr
+
+all: $(SOURCE)
+
+$(SOURCE): src/$(SOURCE).c
+ mkdir build
+ $(CC) $(CFLAGS) -o build/$(TARGET) src/$(SOURCE).c -v
+
+install:
+ install build/$(TARGET) $(DESTDIR)$(PREFIX)/bin
+
+clean:
+ $(RM) -r build