diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-07-09 02:41:14 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-07-09 02:41:14 -0300 |
commit | 36f45c9ec3d63c656e87c7cdfcc08bc1ac59a806 (patch) | |
tree | 7bc1f88dcf26b080317b6e4e97c9fd9ebf5e25b7 /libchatprivacy/src/Makefile | |
parent | 0e752a6e215aee21dc73da097c3225495d54a5b6 (diff) |
[Project] Chat Privacy
A Minecraft mod which partially fixes Microsoft's danger to Minecraft players.
Diffstat (limited to 'libchatprivacy/src/Makefile')
-rw-r--r-- | libchatprivacy/src/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libchatprivacy/src/Makefile b/libchatprivacy/src/Makefile new file mode 100644 index 0000000..ca3e70e --- /dev/null +++ b/libchatprivacy/src/Makefile @@ -0,0 +1,15 @@ +EMCC=emcc +KOTLINC=kotlinc +WASM2KOTLIN=wasm2kotlin + +libchatprivacy.jar: libchatprivacy.kt wasm_rt_impl.kt + JAVA_OPTS=-Xmx2G $(KOTLINC) -jvm-target 1.8 -nowarn -d libchatprivacy.jar libchatprivacy.kt wasm_rt_impl.kt + +libchatprivacy.kt: libchatprivacy.wasm + $(WASM2KOTLIN) -p libchatprivacy libchatprivacy.wasm -o libchatprivacy.kt + +libchatprivacy.wasm: libchatprivacy.o + $(EMCC) -flto=full -Oz -s ALLOW_TABLE_GROWTH=1 -s ALLOW_MEMORY_GROWTH=1 -s PURE_WASI=1 -L$$(cd ../../libotr/buildenv; pwd)/lib -lotr -lgcrypt -lgpg-error --no-entry -o libchatprivacy.wasm libchatprivacy.o + +libchatprivacy.o: libchatprivacy.c libchatprivacy.h + $(EMCC) -flto=full -Oz -s PURE_WASI=1 -std=c99 -Wall -Wextra -Weverything -pedantic -isystem$$(cd ../../libotr/buildenv; pwd)/include -c -o libchatprivacy.o libchatprivacy.c |