]> gitweb.ps.run Git - matrix_esp_thesis/blob - Makefile
f30f0578072bf46f15d4c4505bc7a06009997b5e
[matrix_esp_thesis] / Makefile
1 CC=gcc\r
2 \r
3 C_OPTS=-Wall -Wextra -pedantic\r
4 C_OPTS+=-I src/\r
5 C_OPTS+=-I ext/olm/include/\r
6 C_OPTS+=-I ext/mjson/src\r
7 C_OPTS+=src/matrix.c\r
8 C_OPTS+=src/matrix_http_curl.c\r
9 C_OPTS+=ext/mjson/src/mjson.c\r
10 C_OPTS+=-l curl\r
11 \r
12 out/examples/%: examples/%.c src/*\r
13         $(CC) -o out/examples/$* examples/$*.c $(C_OPTS)\r
14 \r
15 \r
16 .PHONY: examples\r
17 \r
18 examples: out/examples/Login out/examples/Send out/examples/SendEncrypted out/examples/Sync