aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/examples/keygen-html/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-12-12 01:08:18 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-12-12 01:18:30 +0100
commit037c389f2f09f721ecc84105b0d5d0ca8824c070 (patch)
treea9e2aabd9a92235ca438f18bac5633ea20094c04 /contrib/examples/keygen-html/Makefile
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-037c389f2f09f721ecc84105b0d5d0ca8824c070.tar.xz
wireguard-monolithic-historical-037c389f2f09f721ecc84105b0d5d0ca8824c070.zip
keygen-html: remove prebuilt file
We also reduce the optimization level, just in case, but add closure compiler into the mix. Suggested-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'contrib/examples/keygen-html/Makefile')
-rw-r--r--contrib/examples/keygen-html/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/examples/keygen-html/Makefile b/contrib/examples/keygen-html/Makefile
new file mode 100644
index 0000000..0902275
--- /dev/null
+++ b/contrib/examples/keygen-html/Makefile
@@ -0,0 +1,6 @@
+curve25519_generate.js: src/curve25519_generate.c src/glue.js
+ emcc -O2 --memory-init-file 0 --closure 1 --post-js src/glue.js -o $@ src/curve25519_generate.c
+clean:
+ rm -f curve25519_generate.js
+all: curve25519_generate.js
+.PHONY: clean all