Skip to content

Commit

Permalink
Update scripts to automate libsecp256k1 dependency build and inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
VanBreuk committed Mar 5, 2016
1 parent dfcf81f commit 8d6cefa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion iguana/m_unix
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
git pull
gcc -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lm
gcc -o ../agents/iguana -O2 *.c ../agents/libcrypto777.a -lcurl -lssl -lcrypto -lpthread -lm ../includes/libsecp256k1.a -lgmp
14 changes: 14 additions & 0 deletions m_onetime
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
#!/bin/bash

if [ ! -f includes/secp256k1 ]; then
echo Cloning and Building secp256k1 library...
cd ..
git clone https://github.com/ElementsProject/secp256k1-zkp.git
cd secp256k1-zkp
./autogen.sh
./configure --enable-experimental --enable-module-ecdh --enable-module-schnorr --enable-module-rangeproof
make
cp .libs/libsecp256k1.a ../SuperNET/includes/
cd ../SuperNET
fi

git pull
cd crypto777
./$1
Expand Down

0 comments on commit 8d6cefa

Please sign in to comment.