abouttreesummaryrefslogcommitdiff
path: root/Makefile
blob: 8197ee5b4ffdd60824214a7383d44cb87b54b06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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+=-I ext/mjson/src/
C_OPTS+=-I ext/mongoose/
C_OPTS+=-l ws2_32
C_OPTS+=-l ssl
C_OPTS+=-l crypto
C_OPTS+=out/olm/libolm.a
C_OPTS+=-D MG_ENABLE_OPENSSL=1
C_OPTS+=-fuse-ld=lld.exe -g -gcodeview -Wl,/debug,/pdb:test.pdb
# C_OPTS+=-I ext/curl/include/
# C_OPTS+=-L ext/curl/build/lib/
# C_OPTS+=-l curl

#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