Files
core_libraries/resources/packages/tommath/prepare
Timothy Prepscius b308a4c280 flatten 20260225
2026-02-25 13:00:25 -05:00

29 lines
484 B
Plaintext
Executable File

set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p sdk/include
LIB=tommath
mkdir $LIB
pushd $LIB
git clone --depth 1 https://github.com/libtom/libtommath.git
#--branch v1.2.0
cp -av $DIR/Makefile.project libtommath/
mv libtommath/makefile libtommath/makefile-no
ln -s $DIR/../../Makefile-template libtommath/Makefile
pushd libtommath
make
popd
popd
pushd sdk/include
ln -fs ../../tommath/libtommath tommath
cp $DIR/tommath.h .
popd