nim-secp256k1/secp256k1_wrapper/gen.sh

14 lines
303 B
Bash
Executable File

#!/bin/sh
set -e
THIS_DIR=$(dirname "$0")
cd $THIS_DIR/secp256k1
./autogen.sh
./configure --enable-module-ecdh --enable-module-recovery --enable-experimental
make src/ecmult_static_context.h
cd -
cp secp256k1/src/ecmult_static_context.h "$THIS_DIR"
cp secp256k1/src/libsecp256k1-config.h "$THIS_DIR"