X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/ad9d01050b7b6d592a83ce14eeef7068bd981028..30bde47d1d5d9b6f0b59c318ff16caed6268d1a8:/Makefile diff --git a/Makefile b/Makefile index 88b1941..c82a055 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CC=gcc +CC=clang++ C_OPTS=-Wall -Wextra -pedantic C_OPTS+=src/matrix.c @@ -9,12 +9,13 @@ C_OPTS+=-I src/ C_OPTS+=-I ext/olm/include/ C_OPTS+=-I ext/mjson/src/ C_OPTS+=-I ext/mongoose/ -C_OPTS+=-L out/olm/ C_OPTS+=-l ws2_32 C_OPTS+=-l ssl C_OPTS+=-l crypto -C_OPTS+=-l olm +C_OPTS+=-l stdc++ +C_OPTS+=out/olmdbg/libolm.a C_OPTS+=-D MG_ENABLE_OPENSSL=1 +C_OPTS+=-fuse-ld=lld.exe -g -gcodeview -Wl,/debug,/pdb:out/test.pdb # C_OPTS+=-I ext/curl/include/ # C_OPTS+=-L ext/curl/build/lib/ # C_OPTS+=-l curl @@ -26,4 +27,9 @@ out/examples/%: examples/%.c src/* .PHONY: examples -examples: out/examples/Login out/examples/Send out/examples/SendEncrypted out/examples/Sync \ No newline at end of file +examples: out/examples/Login out/examples/Send out/examples/SendEncrypted out/examples/Sync + +out/olm/libolm.a: + cd out/olm + cmake -DBUILD_SHARED_LIBS=OFF -DOLM_TESTS=OFF ../../ext/olm + cmake --build . \ No newline at end of file