From 5f2f566442fff6deb981567f4aa56b645552752b Mon Sep 17 00:00:00 2001 From: Samuel Neves Date: Sun, 19 Jun 2016 17:55:55 +0100 Subject: no static b2sum, optional openmp --- b2sum/makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/b2sum/makefile b/b2sum/makefile index 8558b2b..4d19474 100644 --- a/b2sum/makefile +++ b/b2sum/makefile @@ -1,9 +1,13 @@ PROG=b2sum PREFIX?=/usr/local MANDIR?=$(PREFIX)/man +NO_OPENMP?=0 +NO_OPENMP_0=-fopenmp +NO_OPENMP_1= CC?=gcc -CFLAGS?=-O3 -march=native -static -Werror=declaration-after-statement -CFLAGS+=-std=c99 -I../sse -fopenmp +CFLAGS?=-O3 -march=native -Werror=declaration-after-statement +CFLAGS+=-std=c99 -I../sse +CFLAGS+=$(NO_OPENMP_$(NO_OPENMP)) LIBS= #FILES=b2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c FILES=b2sum.c ../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c -- cgit v1.2.3 From 9630d9a206de5b8622f6cb43d845d7b2329ceb2e Mon Sep 17 00:00:00 2001 From: Samuel Neves Date: Wed, 22 Jun 2016 08:13:00 +0100 Subject: add b2sum readme --- b2sum/README | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 b2sum/README diff --git a/b2sum/README b/b2sum/README new file mode 100644 index 0000000..1fdaa17 --- /dev/null +++ b/b2sum/README @@ -0,0 +1,12 @@ +# b2sum # + +This is a simple tool to create BLAKE2 hashes of files or streams. For more usage information refer to the manpage, e.g., `man b2sum.1`. + +## Building and Installing ## + +To build `b2sum`, just run `make`. To install, run `make install`. The install path can be altered using the `PREFIX` variable, which defaults to `/usr/local`. Use `PREFIX=/some/path make install` to install somewhere else. + +`b2sum` makes use of OpenMP by default. Some compilers do not support this technology, in which case `b2sum` can be built without it using the `NO_OPENMP` variable. Use `NO_OPENMP=1 make` to build without OpenMP. + +For OS X, there is a prebuilt [Homebrew formula](https://github.com/Homebrew/homebrew-core/commit/e016cda47dfa298c6628de3e9d0fd976eecd91be) which may be installed with `brew install b2sum`. + -- cgit v1.2.3 From cb0506c0824c0a449735ece06732656bb8977556 Mon Sep 17 00:00:00 2001 From: Samuel Neves Date: Wed, 22 Jun 2016 08:14:58 +0100 Subject: rename readme --- b2sum/README | 12 ------------ b2sum/README.md | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 b2sum/README create mode 100644 b2sum/README.md diff --git a/b2sum/README b/b2sum/README deleted file mode 100644 index 1fdaa17..0000000 --- a/b2sum/README +++ /dev/null @@ -1,12 +0,0 @@ -# b2sum # - -This is a simple tool to create BLAKE2 hashes of files or streams. For more usage information refer to the manpage, e.g., `man b2sum.1`. - -## Building and Installing ## - -To build `b2sum`, just run `make`. To install, run `make install`. The install path can be altered using the `PREFIX` variable, which defaults to `/usr/local`. Use `PREFIX=/some/path make install` to install somewhere else. - -`b2sum` makes use of OpenMP by default. Some compilers do not support this technology, in which case `b2sum` can be built without it using the `NO_OPENMP` variable. Use `NO_OPENMP=1 make` to build without OpenMP. - -For OS X, there is a prebuilt [Homebrew formula](https://github.com/Homebrew/homebrew-core/commit/e016cda47dfa298c6628de3e9d0fd976eecd91be) which may be installed with `brew install b2sum`. - diff --git a/b2sum/README.md b/b2sum/README.md new file mode 100644 index 0000000..1fdaa17 --- /dev/null +++ b/b2sum/README.md @@ -0,0 +1,12 @@ +# b2sum # + +This is a simple tool to create BLAKE2 hashes of files or streams. For more usage information refer to the manpage, e.g., `man b2sum.1`. + +## Building and Installing ## + +To build `b2sum`, just run `make`. To install, run `make install`. The install path can be altered using the `PREFIX` variable, which defaults to `/usr/local`. Use `PREFIX=/some/path make install` to install somewhere else. + +`b2sum` makes use of OpenMP by default. Some compilers do not support this technology, in which case `b2sum` can be built without it using the `NO_OPENMP` variable. Use `NO_OPENMP=1 make` to build without OpenMP. + +For OS X, there is a prebuilt [Homebrew formula](https://github.com/Homebrew/homebrew-core/commit/e016cda47dfa298c6628de3e9d0fd976eecd91be) which may be installed with `brew install b2sum`. + -- cgit v1.2.3