aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Lihotzki <lukas@lihotzki.de>2020-09-26 18:24:58 +0200
committerLukas Lihotzki <lukas@lihotzki.de>2020-09-26 18:24:58 +0200
commit73a9ced64e0cbed6f6feec410e972550fe05f226 (patch)
tree4787729f93091075a0f88ab8e8dca070e29b696f
parentac61190bb3fae3fa2d143443ed5c97553cc324ed (diff)
simplify Makefile
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6570cc1..0d327b9 100644
--- a/Makefile
+++ b/Makefile
@@ -199,12 +199,11 @@ $(JS_WASM_TARGET): $(JS_OBJECTS) $(JS_PRE) $(JS_POST) $(JS_EXPORTED_FUNCTIONS) $
$(EMCCFLAGS_WASM) \
$(foreach f,$(JS_PRE),--pre-js $(f)) \
$(foreach f,$(JS_POST),--post-js $(f)) \
+ $(foreach f,$(JS_PREFIX),--extern-pre-js $(f)) \
+ $(foreach f,$(JS_SUFFIX),--extern-post-js $(f)) \
-s "EXPORTED_FUNCTIONS=@$(JS_EXPORTED_FUNCTIONS)" \
-s "EXTRA_EXPORTED_RUNTIME_METHODS=$(JS_EXTRA_EXPORTED_RUNTIME_METHODS)" \
-o $@ $(JS_OBJECTS)
- mv $@ javascript/olmtmp.js
- cat $(JS_PREFIX) javascript/olmtmp.js $(JS_SUFFIX) > $@
- rm javascript/olmtmp.js
$(JS_ASMJS_TARGET): $(JS_OBJECTS) $(JS_PRE) $(JS_POST) $(JS_EXPORTED_FUNCTIONS) $(JS_PREFIX) $(JS_SUFFIX)
EMCC_CLOSURE_ARGS="--externs $(JS_EXTERNS)" $(EMCC_LINK) \