<commit_before>ifeq ($(STATIC),y)
SLIB_HTTPSERVER:=y
SLIB_URI:=y
endif

ifeq ($(DYNAMIC),y)
DLIB_HTTPSERVER:=y
DLIB_URI:=y
endif

lib-$(DLIB_HTTPSERVER)+=httpserver
slib-$(SLIB_HTTPSERVER)+=httpserver
httpserver_SOURCES+=httpserver.c tcpserver.c
httpserver_CFLAGS+=-I../../include/httpserver

ifeq ($(VTHREAD_TYPE),)
VTHREAD_TYPE:=fork
endif
httpserver_SOURCES-$(VTHREAD)+=vthread_$(VTHREAD_TYPE).c
httpserver_CFLAGS-$(VTHREAD)+=-DVTHREAD
vthread_pthread_CFLAGS+=-DHAVE_SCHED_YIELD
vthread_fork_CFLAGS+=-DHAVE_SCHED_YIELD

lib-$(DLIB_URI)+=uri
slib-$(SLIB_URI)+=uri
uri_SOURCES+=uri.c
uri_CFLAGS+=-I../../include/httpserver

httpserver_CFLAGS-$(DEBUG)+=-g -DDEBUG
uri_CFLAGS-$(DEBUG)+=-g -DDEBUG

ifeq ($(WIN32),1)
httpserver_LDFLAGS+=-lws2_32
else
httpserver_LDFLAGS-$(VTHREAD)+=-lpthread
endif<commit_msg>[build] link with pthread if necessary<commit_after>ifeq ($(STATIC),y)
SLIB_HTTPSERVER:=y
SLIB_URI:=y
endif

ifeq ($(DYNAMIC),y)
DLIB_HTTPSERVER:=y
DLIB_URI:=y
endif

lib-$(DLIB_HTTPSERVER)+=httpserver
slib-$(SLIB_HTTPSERVER)+=httpserver
httpserver_SOURCES+=httpserver.c tcpserver.c
httpserver_CFLAGS+=-I../../include/httpserver

ifeq ($(VTHREAD_TYPE),)
VTHREAD_TYPE:=fork
endif
httpserver_SOURCES-$(VTHREAD)+=vthread_$(VTHREAD_TYPE).c
httpserver_CFLAGS-$(VTHREAD)+=-DVTHREAD
vthread_pthread_CFLAGS+=-DHAVE_SCHED_YIELD
vthread_fork_CFLAGS+=-DHAVE_SCHED_YIELD

lib-$(DLIB_URI)+=uri
slib-$(SLIB_URI)+=uri
uri_SOURCES+=uri.c
uri_CFLAGS+=-I../../include/httpserver

httpserver_CFLAGS-$(DEBUG)+=-g -DDEBUG
uri_CFLAGS-$(DEBUG)+=-g -DDEBUG

ifeq ($(WIN32),1)
httpserver_LDFLAGS+=-lws2_32
elifeq ($(VTHREAD_TYPE),pthread)
httpserver_LDFLAGS-$(VTHREAD)+=-lpthread
endif
{'fraction_non_alphanumeric': 0.16916616676664667, 'fraction_numerical': 0.007198560287942412, 'mean_word_length': 8.988023952095809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '479930', 'n_tokens_mistral': 727, 'n_tokens_neox': 696, 'n_words': 79}