nim-secp256k1/secp256k1_wrapper/gen.sh

14 lines
303 B
Bash
Raw Normal View History

#!/bin/sh
2018-03-15 18:34:55 +00:00
set -e
THIS_DIR=$(dirname "$0")
cd $THIS_DIR/secp256k1
./autogen.sh
2018-03-15 18:34:55 +00:00
./configure --enable-module-ecdh --enable-module-recovery --enable-experimental
make src/ecmult_static_context.h
2018-03-15 18:34:55 +00:00
cd -
cp secp256k1/src/ecmult_static_context.h "$THIS_DIR"
cp secp256k1/src/libsecp256k1-config.h "$THIS_DIR"