1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
trezor-firmware/emscripten/Makefile

21 lines
443 B
Makefile
Raw Normal View History

EMFLAGS = \
-O2 --closure 1 \
--memory-init-file 0 \
--pre-js pre.js --post-js post.js \
-s EXPORTED_FUNCTIONS='["_hdnode_public_ckd", "_ecdsa_get_address"]' \
SRC = ../bignum.c ../ecdsa.c ../secp256k1.c ../hmac.c ../bip32.c \
../base58.c ../ripemd160.c ../sha2.c ../rand.c
2015-06-16 22:06:53 +00:00
test: node_modules trezor-crypto.js
node test.js
trezor-crypto.js: $(SRC)
emcc $(EMFLAGS) -o $@ $^
2015-06-16 22:06:53 +00:00
node_modules:
npm install
clean:
rm -f trezor-crypto.js