blob: 044ed34dde2a65ad8f3c20fdd8a80a633077cfdf [file] [log] [blame]
#!/usr/bin/env bash
#
# buildMulti.sh
#
# Build test with multiple curves and RSA security levels
# @author Kealan McCusker <kealanmccusker@gmail.com>
# set -e
# Build default - see config.mk
make clean
make
# Build example with multiple curves and RSA security level
gcc -O2 -std=c99 ./examples/example_all.c -I./include/ -I./target/default/include/ -L./target/default/lib/ -lamcl_core -lamcl_curve_BLS381 -lamcl_curve_ED25519 -lamcl_curve_GOLDILOCKS -lamcl_curve_NIST256 -lamcl_mpin_BLS381 -lamcl_pairing_BLS381 -lamcl_rsa_2048 -lamcl_rsa_3072 -lamcl_wcc_BLS381 -lamcl_x509 -o testall
# Run code
export LD_LIBRARY_PATH=./target/default/lib
./testall