]> gitweb.ps.run Git - matrix_esp_thesis/blob - Makefile
mongoose as http client
[matrix_esp_thesis] / Makefile
1 CC=gcc\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+=-D MG_ENABLE_OPENSSL=1\r
16 C_OPTS+=-g\r
17 # C_OPTS+=-I ext/curl/include/\r
18 # C_OPTS+=-L ext/curl/build/lib/\r
19 # C_OPTS+=-l curl\r
20 \r
21 #C_OPTS+=-Wl,--verbose\r
22 \r
23 out/examples/%: examples/%.c src/*\r
24         $(CC) -o out/examples/$* examples/$*.c $(C_OPTS)\r
25 \r
26 \r
27 .PHONY: examples\r
28 \r
29 examples: out/examples/Login out/examples/Send out/examples/SendEncrypted out/examples/Sync