]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - Makefile
remove submodules
[matrix_esp_thesis] / Makefile
index 82c259ab65a27aa1862edd8649c5fb4aa731e656..c82a055818d022c5b46d1da3616da12d887da81a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CC=gcc\r
+CC=clang++\r
 \r
 C_OPTS=-Wall -Wextra -pedantic\r
 C_OPTS+=src/matrix.c\r
@@ -12,8 +12,10 @@ C_OPTS+=-I ext/mongoose/
 C_OPTS+=-l ws2_32\r
 C_OPTS+=-l ssl\r
 C_OPTS+=-l crypto\r
+C_OPTS+=-l stdc++\r
+C_OPTS+=out/olmdbg/libolm.a\r
 C_OPTS+=-D MG_ENABLE_OPENSSL=1\r
-C_OPTS+=-g\r
+C_OPTS+=-fuse-ld=lld.exe -g -gcodeview -Wl,/debug,/pdb:out/test.pdb\r
 # C_OPTS+=-I ext/curl/include/\r
 # C_OPTS+=-L ext/curl/build/lib/\r
 # C_OPTS+=-l curl\r
@@ -23,7 +25,11 @@ C_OPTS+=-g
 out/examples/%: examples/%.c src/*\r
        $(CC) -o out/examples/$* examples/$*.c $(C_OPTS)\r
 \r
-\r
 .PHONY: examples\r
 \r
-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\r
+\r
+out/olm/libolm.a:\r
+       cd out/olm\r
+       cmake -DBUILD_SHARED_LIBS=OFF -DOLM_TESTS=OFF ../../ext/olm\r
+       cmake --build .
\ No newline at end of file