diff options
| author | Patrick | 2023-05-28 15:07:34 +0200 |
|---|---|---|
| committer | Patrick | 2023-05-28 15:07:34 +0200 |
| commit | 5cb22046a33f24c1a696990f95e13d534efef497 (patch) | |
| tree | a2c3c1baa74b61c72c8bb3514ff694e2f65bc105 /Makefile | |
| parent | 27a83e93114c31de4b7bd33320a85e5fad0196a3 (diff) | |
| download | matrix_esp_thesis-5cb22046a33f24c1a696990f95e13d534efef497.tar.gz matrix_esp_thesis-5cb22046a33f24c1a696990f95e13d534efef497.zip | |
mongoose as http client
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -1,13 +1,24 @@ CC=gcc
C_OPTS=-Wall -Wextra -pedantic
-C_OPTS+=-I src/
-C_OPTS+=-I ext/olm/include/
-C_OPTS+=-I ext/mjson/src
C_OPTS+=src/matrix.c
-C_OPTS+=src/matrix_http_curl.c
+C_OPTS+=src/matrix_http_mongoose.c
C_OPTS+=ext/mjson/src/mjson.c
-C_OPTS+=-l curl
+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+=-D MG_ENABLE_OPENSSL=1
+C_OPTS+=-g
+# 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)
|
