X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/5cb22046a33f24c1a696990f95e13d534efef497..0b5fc6b640af6f13fe56a6e77598d96db78bb56c:/Makefile diff --git a/Makefile b/Makefile index 82c259a..c82a055 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CC=gcc +CC=clang++ C_OPTS=-Wall -Wextra -pedantic C_OPTS+=src/matrix.c @@ -12,8 +12,10 @@ C_OPTS+=-I ext/mongoose/ C_OPTS+=-l ws2_32 C_OPTS+=-l ssl C_OPTS+=-l crypto +C_OPTS+=-l stdc++ +C_OPTS+=out/olmdbg/libolm.a C_OPTS+=-D MG_ENABLE_OPENSSL=1 -C_OPTS+=-g +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 @@ -23,7 +25,11 @@ C_OPTS+=-g out/examples/%: examples/%.c src/* $(CC) -o out/examples/$* examples/$*.c $(C_OPTS) - .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