]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - Makefile
get send encrypted to send :)
[matrix_esp_thesis] / Makefile
index f30f0578072bf46f15d4c4505bc7a06009997b5e..8197ee5b4ffdd60824214a7383d44cb87b54b06b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,29 @@
-CC=gcc\r
+CC=clang++\r
 \r
 C_OPTS=-Wall -Wextra -pedantic\r
-C_OPTS+=-I src/\r
-C_OPTS+=-I ext/olm/include/\r
-C_OPTS+=-I ext/mjson/src\r
 C_OPTS+=src/matrix.c\r
-C_OPTS+=src/matrix_http_curl.c\r
+C_OPTS+=src/matrix_http_mongoose.c\r
 C_OPTS+=ext/mjson/src/mjson.c\r
-C_OPTS+=-l curl\r
+C_OPTS+=ext/mongoose/mongoose.c\r
+C_OPTS+=-I src/\r
+C_OPTS+=-I ext/olm/include/\r
+C_OPTS+=-I ext/mjson/src/\r
+C_OPTS+=-I ext/mongoose/\r
+C_OPTS+=-l ws2_32\r
+C_OPTS+=-l ssl\r
+C_OPTS+=-l crypto\r
+C_OPTS+=out/olm/libolm.a\r
+C_OPTS+=-D MG_ENABLE_OPENSSL=1\r
+C_OPTS+=-fuse-ld=lld.exe -g -gcodeview -Wl,/debug,/pdb:test.pdb\r
+# C_OPTS+=-I ext/curl/include/\r
+# C_OPTS+=-L ext/curl/build/lib/\r
+# C_OPTS+=-l curl\r
+\r
+#C_OPTS+=-Wl,--verbose\r
 \r
 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