mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +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 \
|
||||
../base58.c ../ripemd160.c ../sha2.c ../rand.c
|
||||
|
||||
trezor-crypto.js: $(SRC)
|
||||
emcc $(EMFLAGS) -o $@ $^
|
||||
|
||||
test-node: node_modules trezor-crypto.js test.js
|
||||
node 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"
|
||||
|
||||
trezor-crypto.js: $(SRC)
|
||||
emcc $(EMFLAGS) -o $@ $^
|
||||
|
||||
node_modules:
|
||||
npm install
|
||||
npm install browserify
|
||||
|
||||
clean:
|
||||
rm -f trezor-crypto.js test-browserify.js
|
||||
|
Loading…
Reference in New Issue
Block a user