mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-01 11:28:20 +00:00
fix makefile for emscripten
This commit is contained in:
parent
110965f31d
commit
75f2396624
@ -8,18 +8,19 @@ EMFLAGS = \
|
|||||||
SRC = ../bignum.c ../ecdsa.c ../secp256k1.c ../hmac.c ../bip32.c \
|
SRC = ../bignum.c ../ecdsa.c ../secp256k1.c ../hmac.c ../bip32.c \
|
||||||
../base58.c ../ripemd160.c ../sha2.c ../rand.c
|
../base58.c ../ripemd160.c ../sha2.c ../rand.c
|
||||||
|
|
||||||
|
trezor-crypto.js: $(SRC)
|
||||||
|
emcc $(EMFLAGS) -o $@ $^
|
||||||
|
|
||||||
test-node: node_modules trezor-crypto.js test.js
|
test-node: node_modules trezor-crypto.js test.js
|
||||||
node test.js
|
node test.js
|
||||||
|
|
||||||
test-browserify.js: node_modules trezor-crypto.js test.js
|
test-browserify.js: node_modules trezor-crypto.js test.js
|
||||||
browserify test.js -o $@ --noparse=`pwd`/trezor-crypto.js
|
$(shell npm bin)/browserify test.js -o $@ --noparse=`pwd`/trezor-crypto.js
|
||||||
@echo "open test.html in your favourite browser"
|
@echo "open test.html in your favourite browser"
|
||||||
|
|
||||||
trezor-crypto.js: $(SRC)
|
|
||||||
emcc $(EMFLAGS) -o $@ $^
|
|
||||||
|
|
||||||
node_modules:
|
node_modules:
|
||||||
npm install
|
npm install
|
||||||
|
npm install browserify
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f trezor-crypto.js test-browserify.js
|
rm -f trezor-crypto.js test-browserify.js
|
||||||
|
Loading…
Reference in New Issue
Block a user