]> gitweb.ps.run Git - matrix_esp_thesis/blob - Makefile
remove newline
[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+=out/*.o\r
7 C_OPTS+=-I src/\r
8 C_OPTS+=-I ext/olm/include/\r
9 C_OPTS+=-I ext/mjson/src/\r
10 C_OPTS+=-I ext/mongoose/\r
11 C_OPTS+=-l ws2_32\r
12 C_OPTS+=-l ssl\r
13 C_OPTS+=-l crypto\r
14 C_OPTS+=-l stdc++\r
15 # uncomment to generate msvc debug symbols with clang (requires lld)\r
16 # C_OPTS+=-fuse-ld=lld -g -gcodeview -Wl,/debug,/pdb:\r
17 \r
18 out/examples/%: examples/%.c src/*\r
19         $(CC) -o out/examples/$* examples/$*.c $(C_OPTS)\r
20 \r
21 olm:\r
22         cd out && \\r
23         $(CC) -c \\r
24                 ../ext/olm/src/* \\r
25                 ../ext/olm/lib/crypto-algorithms/aes.c \\r
26                 ../ext/olm/lib/curve25519-donna/curve25519-donna.c \\r
27                 ../ext/olm/lib/crypto-algorithms/sha256.c \\r
28                 -I ../ext/olm/include \\r
29                 -I ../ext/olm/lib \\r
30                 -DOLM_STATIC_DEFINE \\r
31                 -DOLMLIB_VERSION_MAJOR=3 \\r
32                 -DOLMLIB_VERSION_MINOR=2 \\r
33                 -DOLMLIB_VERSION_PATCH=15\r
34 \r
35 mongoose:\r
36         cd out && \\r
37         $(CC) -c ../ext/mongoose/mongoose.c -I ../ext/mongoose/ -DMG_ENABLE_OPENSSL=1\r
38 \r
39 mjson:\r
40         cd out && \\r
41         $(CC) -c ../ext/mjson/src/mjson.c -I ../ext/mjson/src/\r
42 \r
43 deps: olm mongoose mjson\r
44 \r
45 .PHONY: deps olm mongoose mjson