aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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