flatten 20260225
This commit is contained in:
14
resources/packages/tommath/Makefile.project
Executable file
14
resources/packages/tommath/Makefile.project
Executable file
@@ -0,0 +1,14 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
|
||||
PROJECTS := .
|
||||
INCPATH := -I include
|
||||
|
||||
LIBFILE := libtommath.a
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
_FLAGS := $(_FLAGS)
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
28
resources/packages/tommath/prepare
Executable file
28
resources/packages/tommath/prepare
Executable file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
|
||||
1
resources/packages/tommath/tommath.h
Normal file
1
resources/packages/tommath/tommath.h
Normal file
@@ -0,0 +1 @@
|
||||
#include "tommath/tommath.h"
|
||||
Reference in New Issue
Block a user