1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

fix makefile for emscripten

This commit is contained in:
Pavol Rusnak 2016-05-12 19:57:22 +02:00
parent 110965f31d
commit 75f2396624
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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