aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-30 18:30:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-30 23:00:44 +0200
commitdc11b6262f4717e61e55760cb2bd637ff1c0f6a9 (patch)
treef117356570d5c2baec289dd63a83cc9c2402c180 /Makefile
downloadhashpipe-master.tar.xz
hashpipe-master.zip
Initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0493295
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+PREFIX ?= /usr/local
+DESTDIR ?=
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man
+
+LDLIBS := -lcrypto
+CFLAGS ?= -O3 -march=native
+CFLAGS += -std=gnu11 -Wall -pedantic
+
+all: hashpipe
+
+hashpipe:
+
+install: hashpipe
+ @install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 hashpipe "$(DESTDIR)$(BINDIR)/hashpipe"
+
+clean:
+ rm -f hashpipe
+
+.PHONY: all clean install