diff --git a/examples/big_upload/Makefile b/examples/big_upload/Makefile index 1f8720b73a0cee1325f503bd2c93b509bbafeff3..a47d188489f628c6e0d841dc69b959ca76ded90a 100644 --- a/examples/big_upload/Makefile +++ b/examples/big_upload/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = big_upload -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -pthread -I../.. -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/cookie_authentication/Makefile b/examples/cookie_authentication/Makefile index 018c18adeb8d0eebce1b0242507f22c65f57c048..1eb0652b96159ecabde0641bdfd4cefc6b6ea463 100644 --- a/examples/cookie_authentication/Makefile +++ b/examples/cookie_authentication/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = cookie_auth -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/digest_authentication/Makefile b/examples/digest_authentication/Makefile index e666b6a0b4d623e2191532355124c639eadf7583..86cd30db1d7f79570711a97cc185af804531e279 100644 --- a/examples/digest_authentication/Makefile +++ b/examples/digest_authentication/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = digest_auth -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/file_upload/Makefile b/examples/file_upload/Makefile index 6e43388a272753baff54e4b47241f3f69a338ec8..bf1e51dfc9050072eeed683dc874a7dcafb34e57 100644 --- a/examples/file_upload/Makefile +++ b/examples/file_upload/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = file_upload -CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c all: $(PROG) diff --git a/examples/form_submit/Makefile b/examples/form_submit/Makefile index 1d7c0ff77c7e60124920c465e7aa479384a44626..b233f28577465b6a47be7b8c8cd29a79557c074c 100644 --- a/examples/form_submit/Makefile +++ b/examples/form_submit/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = form_submit -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/hello_world/Makefile b/examples/hello_world/Makefile index bab0dba77d13651dd5157bf758ebd9f57caf9a94..d1384e0172311cd59dcbf3d0b1cd85271f28b5f6 100644 --- a/examples/hello_world/Makefile +++ b/examples/hello_world/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = hello_world -CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c all: $(PROG) diff --git a/examples/http_client/Makefile b/examples/http_client/Makefile index 906d32f0b749edf553fa2b1362e5e20dc257f7b6..422948ffd67fcaf4e8c9d96e62db7a6b53e7f699 100644 --- a/examples/http_client/Makefile +++ b/examples/http_client/Makefile @@ -1,9 +1,9 @@ # Copyright (c) 2014 Cesanta Software # All rights reserved -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) -SOURCES = http_client.c ../../mongoose.c PROG = http_client +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) +SOURCES = $(PROG).c ../../mongoose.c unix: $(SOURCES) $(CC) -o $(PROG) $(SOURCES) $(CFLAGS) diff --git a/examples/mjpg_streamer/Makefile b/examples/mjpg_streamer/Makefile index 0d16814a7e8034404075fef77c9bb7bc4f8e9d18..35946c0a477795ecc3553667eda438cddaf37f6a 100644 --- a/examples/mjpg_streamer/Makefile +++ b/examples/mjpg_streamer/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = mjpg_streamer -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/multi_threaded_server/Makefile b/examples/multi_threaded_server/Makefile index f3a4ff0c6291f4e7edf0017737c4fe0ff899043e..b85aa97a8af27180b9855a2fe6a4def9745bf9bf 100644 --- a/examples/multi_threaded_server/Makefile +++ b/examples/multi_threaded_server/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = multi_threaded_server -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/proxy_server/Makefile b/examples/proxy_server/Makefile index 38d1a4db2313cb06e066f206ccf4f905066d8b5e..0e1871df1b12fff89b70221d6b1fa65ac79b4c09 100644 --- a/examples/proxy_server/Makefile +++ b/examples/proxy_server/Makefile @@ -3,7 +3,7 @@ PROG = proxy_server FLAGS = -I../.. -I../../../net_skeleton -DNS_ENABLE_SSL -CFLAGS = -W -Wall -g -O0 -lssl $(FLAGS) $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -g -O0 -pthread -lssl $(FLAGS) $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c unix: $(SOURCES) diff --git a/examples/restful_api/Makefile b/examples/restful_api/Makefile index e56fed3242255ba46688d530f8cfdec54e6d01f8..97fcf3f93dbe7f7f0e5ba1f44f9170be3d57e63e 100644 --- a/examples/restful_api/Makefile +++ b/examples/restful_api/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = restful_api -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/send_file/Makefile b/examples/send_file/Makefile index 0badd3585a2fcc4ba61149f93e533c087e4df47e..4c20d6ac4b6608cac0cc2540408a6c2e1f97b84f 100644 --- a/examples/send_file/Makefile +++ b/examples/send_file/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = send_file -CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c all: $(PROG) diff --git a/examples/web_server/Makefile b/examples/web_server/Makefile index efc2e3e7971c7b6719e1337569d8a02909a11ac4..888f2148d814eb9607697090feb259a17123b841 100644 --- a/examples/web_server/Makefile +++ b/examples/web_server/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = web_server -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/websocket_chat/Makefile b/examples/websocket_chat/Makefile index 5b027268ccea71203b38f015945ead389eebdb40..780276ef46b09cd72e1e384e13df8920553fa807 100644 --- a/examples/websocket_chat/Makefile +++ b/examples/websocket_chat/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = websocket_chat -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/websocket_echo_server/Makefile b/examples/websocket_echo_server/Makefile index 3e875230ee8343e0c586454882e0daa0174dd45b..f6b132dc9c65a8af68592169ea1287fcdbf7eb6b 100644 --- a/examples/websocket_echo_server/Makefile +++ b/examples/websocket_echo_server/Makefile @@ -2,7 +2,7 @@ # All rights reserved PROG = websocket_echo_server -CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c $(PROG): $(SOURCES) diff --git a/examples/websocket_ssl_proxy/Makefile b/examples/websocket_ssl_proxy/Makefile index b4fc4faf9b5dfc84cf355f3a6fa189428b0f1e4a..e0076a33fbcb0817ad70ae42d37657ceff1fb1c2 100644 --- a/examples/websocket_ssl_proxy/Makefile +++ b/examples/websocket_ssl_proxy/Makefile @@ -1,10 +1,9 @@ # Copyright (c) 2014 Cesanta Software # All rights reserved -CFLAGS = -W -Wall -I../.. -I. -g -O0 $(CFLAGS_EXTRA) - -SOURCES = ws_ssl.c ../../mongoose.c net_skeleton.c ssl_wrapper.c PROG = ws_ssl +CFLAGS = -W -Wall -I../.. -I. -pthread -g -O0 $(CFLAGS_EXTRA) +SOURCES = ws_ssl.c ../../mongoose.c net_skeleton.c ssl_wrapper.c all: $(PROG)