]> gitweb.ps.run Git - matrix_esp_thesis/blob - Makefile
cli send, save and load
[matrix_esp_thesis] / Makefile
1 CC=clang\r
2 \r
3 C_OPTS=-Wall -Wextra -pedantic\r
4 C_OPTS+=src/matrix.c\r
5 C_OPTS+=src/matrix_http_mongoose.c\r
6 C_OPTS+=ext/mjson/src/mjson.c\r
7 C_OPTS+=ext/mongoose/mongoose.c\r
8 C_OPTS+=-I src/\r
9 C_OPTS+=-I ext/olm/include/\r
10 C_OPTS+=-I ext/mjson/src/\r
11 C_OPTS+=-I ext/mongoose/\r
12 C_OPTS+=-l ws2_32\r
13 C_OPTS+=-l ssl\r
14 C_OPTS+=-l crypto\r
15 C_OPTS+=-l stdc++\r
16 C_OPTS+=out/olm/libolm.a\r
17 C_OPTS+=-D MG_ENABLE_OPENSSL=1\r
18 C_OPTS+=-fuse-ld=lld.exe -g -gcodeview -Wl,/debug,/pdb:out/test.pdb\r
19 # C_OPTS+=-I ext/curl/include/\r
20 # C_OPTS+=-L ext/curl/build/lib/\r
21 # C_OPTS+=-l curl\r
22 \r
23 #C_OPTS+=-Wl,--verbose\r
24 \r
25 out/examples/%: examples/%.c src/*\r
26         $(CC) -o out/examples/$* examples/$*.c $(C_OPTS)\r
27 \r
28 .PHONY: examples\r
29 \r
30 examples: out/examples/Login out/examples/Send out/examples/SendEncrypted out/examples/Sync\r
31 \r
32 out/olm/libolm.a:\r
33         cd out/olm\r
34         cmake -DBUILD_SHARED_LIBS=OFF -DOLM_TESTS=OFF ../../ext/olm\r
35         cmake --build .