libswarm-ng

C implementation of BMT hasher, Swarmhash and Single Owner Chunk for swarm
git clone git://git.defalsify.org/libswarm-ng.git
Log | Files | Refs | Submodules | README

commit 1eeaa706bf18000e3a75aaa4c28eab46691c6cdd
parent 445f085f72b5b610a45d5747984987ad3cccea28
Author: nolash <dev@holbrook.no>
Date:   Fri,  1 Oct 2021 09:07:56 +0200

Update prepare script

Diffstat:
MDEPENDENCIES | 3---
MREADME | 18+++++++++++++-----
Mprepare.sh | 14+++++++++++---
3 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/DEPENDENCIES b/DEPENDENCIES @@ -4,6 +4,3 @@ - keccak-tiny * Source: David Leon Gil, github.com * License: CC0 -- tiny-bignum-c - * Source: kokke, github.com - * License: In public domain diff --git a/README b/README @@ -1,13 +1,21 @@ -INITIALIZATION +SETUP -git submodule --init update +OS environment requires some provisions to build the deps (these are debian package names): +- clang +- gcc +- autoconf +- libtool +- git +- pkg-config +- texinfo -TESTS +A bash script is provided to fetch and build the dependencies + +$ bash prepare.sh -Tests use libcheck https://libcheck.github.io/check/index.html shared library. Make sure you have it installed. For example on Archlinux that's: -$ pacman -S check +TESTS Running tests will build deps and libraries: diff --git a/prepare.sh b/prepare.sh @@ -1,12 +1,20 @@ -#git submodule init --update --recursive +#!/bin/bash + +git submodule update --init --recursive SECP256K1_SRC_DIR=${SECP256K1_SRC_DIR:-./aux/secp256k1} +CHECK_SRC_DIR=${CHECK_SRC_DIR:-./aux/check} pushd $SECP256K1_SRC_DIR -make clean -sh autogen.sh +autoreconf --install --force ./configure --enable-module-recovery make popd +pushd $CHECK_SRC_DIR +autoreconf --install --force +./configure +make +popd +