From f22ea1f1294f0c51e04f33f327f0fbb16b812fa3 Mon Sep 17 00:00:00 2001 From: Seppia Date: Thu, 8 Dec 2016 19:53:04 +0100 Subject: added Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile 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 -- cgit v1.2.3