summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSeppia <nonso@insicuri.net>2016-12-08 19:53:04 +0100
committerSeppia <nonso@insicuri.net>2016-12-08 19:53:04 +0100
commitf22ea1f1294f0c51e04f33f327f0fbb16b812fa3 (patch)
tree263b404f1fa0f6d6e86b8446aa7358c0b37587d8 /Makefile
parentda46edf7b8de417d5aa5e57af1b5efa3781ca74d (diff)
downloadonetimebluh-f22ea1f1294f0c51e04f33f327f0fbb16b812fa3.tar.gz
onetimebluh-f22ea1f1294f0c51e04f33f327f0fbb16b812fa3.tar.bz2
onetimebluh-f22ea1f1294f0c51e04f33f327f0fbb16b812fa3.zip
added Makefile
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