Commit 911115cc authored by Sergey Lyubka's avatar Sergey Lyubka

Added -pthread to CFLAGS for linux

parent 2f3ddecc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = big_upload 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = cookie_auth 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = digest_auth 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = file_upload PROG = file_upload
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA)
SOURCES = $(PROG).c ../../mongoose.c SOURCES = $(PROG).c ../../mongoose.c
all: $(PROG) all: $(PROG)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = form_submit 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = hello_world PROG = hello_world
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA)
SOURCES = $(PROG).c ../../mongoose.c SOURCES = $(PROG).c ../../mongoose.c
all: $(PROG) all: $(PROG)
......
# Copyright (c) 2014 Cesanta Software # Copyright (c) 2014 Cesanta Software
# All rights reserved # All rights reserved
CFLAGS = -W -Wall -I../.. -g -O0 $(CFLAGS_EXTRA)
SOURCES = http_client.c ../../mongoose.c
PROG = http_client PROG = http_client
CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA)
SOURCES = $(PROG).c ../../mongoose.c
unix: $(SOURCES) unix: $(SOURCES)
$(CC) -o $(PROG) $(SOURCES) $(CFLAGS) $(CC) -o $(PROG) $(SOURCES) $(CFLAGS)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = mjpg_streamer 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = multi_threaded_server 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
PROG = proxy_server PROG = proxy_server
FLAGS = -I../.. -I../../../net_skeleton -DNS_ENABLE_SSL 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 SOURCES = $(PROG).c ../../mongoose.c
unix: $(SOURCES) unix: $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = restful_api 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = send_file PROG = send_file
CFLAGS = -W -Wall -I../.. $(CFLAGS_EXTRA) CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA)
SOURCES = $(PROG).c ../../mongoose.c SOURCES = $(PROG).c ../../mongoose.c
all: $(PROG) all: $(PROG)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = web_server 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = websocket_chat 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# All rights reserved # All rights reserved
PROG = websocket_echo_server 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 SOURCES = $(PROG).c ../../mongoose.c
$(PROG): $(SOURCES) $(PROG): $(SOURCES)
......
# Copyright (c) 2014 Cesanta Software # Copyright (c) 2014 Cesanta Software
# All rights reserved # 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 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) all: $(PROG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment