X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/d43e8671acc5709c192e159e0d91626f0677cdf1..21c6e8484b0bd05c27e5a91f2884d431926adc61:/Makefile diff --git a/Makefile b/Makefile index d19abaa..c82a055 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,35 @@ -CC=gcc +CC=clang++ C_OPTS=-Wall -Wextra -pedantic +C_OPTS+=src/matrix.c +C_OPTS+=src/matrix_http_mongoose.c +C_OPTS+=ext/mjson/src/mjson.c +C_OPTS+=ext/mongoose/mongoose.c C_OPTS+=-I src/ C_OPTS+=-I ext/olm/include/ -C_OPTS+=src/matrix.c +C_OPTS+=-I ext/mjson/src/ +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+=-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 -out/examples/%: examples/%.c - $(CC) -o out/examples/$* examples/$*.c $(C_OPTS) +#C_OPTS+=-Wl,--verbose +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