Added -pthread to CFLAGS for linux

This commit is contained in:
Sergey Lyubka 2014-10-14 10:05:12 +00:00
parent 2f3ddeccc5
commit 911115ccc0
16 changed files with 18 additions and 19 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)