<commit_before>TARGET=ouistiti
sbin-y+=$(TARGET)
$(TARGET)_CFLAGS+=-I../libhttpserver/include/httpserver
$(TARGET)_LDFLAGS+=-L. -L../libhttpserver/src
ifeq ($(VTHREAD_TYPE),pthread)
$(TARGET)_LIBRARY-$(VTHREAD)+=pthread rt
endif
$(TARGET)_SOURCES+=main.c ../libhttpserver/src/httpserver/libhttpserver.a
main_CFLAGS+= -Dsysconfdir="\"$(sysconfdir)\""
$(TARGET)_CFLAGS-$(STATIC_CONFIG)+=-DSTATIC_CONFIG
$(TARGET)_SOURCES-$(FILE_CONFIG)+=config.c
$(TARGET)_LIBRARY-$(FILE_CONFIG)+=config

$(TARGET)_LIBS-$(MBEDTLS)+=mod_mbedtls
$(TARGET)_LIBRARY-$(MBEDTLS)+=mbedtls mbedx509 mbedcrypto
$(TARGET)_CFLAGS-$(MBEDTLS)+=-DMBEDTLS
$(TARGET)_LIBS-$(SENDFILE)+=mod_sendfile
$(TARGET)_CFLAGS-$(SENDFILE)+=-DSTATIC_FILE -DSENDFILE
$(TARGET)_LIBS-$(STATIC_FILE)+=mod_static_file utils_mod
$(TARGET)_CFLAGS-$(STATIC_FILE)+=-DSTATIC_FILE
$(TARGET)_LIBS-$(CGI)+=mod_cgi utils_mod
$(TARGET)_CFLAGS-$(CGI)+=-DCGI
$(TARGET)_LIBS-$(AUTH)+=mod_auth
$(TARGET)_CFLAGS-$(AUTH)+=-DAUTH
$(TARGET)_CFLAGS-$(AUTHN_BASIC_CONF)+=-DAUTHN_BASIC_CONF

$(TARGET)_CFLAGS-$(DEBUG)+=-g -DDEBUG

ifeq ($(STATIC),y)
	static=s
endif

$(static)lib-$(STATIC)+=utils_mod
utils_mod_SOURCES=utils.c
utils_mod_CFLAGS+=-I../libhttpserver/include 

utils_mod_CFLAGS-$(DEBUG)+=-g -DDEBUG

$(static)lib-$(CGI)+=mod_cgi
mod_cgi_SOURCES+=mod_cgi.c
mod_cgi_CFLAGS+=-I../libhttpserver/include/

mod_cgi_CFLAGS-$(DEBUG)+=-g -DDEBUG

$(static)lib-$(STATIC_FILE)+=mod_static_file
mod_static_file_SOURCES+=mod_static_file.c
mod_static_file_CFLAGS+=-I../libhttpserver/include
mod_static_file_CFLAGS-$(SENDFILE)+=-DSENDFILE

mod_static_file_CFLAGS-$(DEBUG)+=-g -DDEBUG

$(static)lib-$(SENDFILE)+=mod_sendfile<commit_msg>[build] add utils_mod link<commit_after>TARGET=ouistiti
sbin-y+=$(TARGET)
$(TARGET)_CFLAGS+=-I../libhttpserver/include/httpserver
$(TARGET)_LDFLAGS+=-L. -L../libhttpserver/src
ifeq ($(VTHREAD_TYPE),pthread)
$(TARGET)_LIBRARY-$(VTHREAD)+=pthread rt
endif
$(TARGET)_SOURCES+=main.c ../libhttpserver/src/httpserver/libhttpserver.a
main_CFLAGS+= -Dsysconfdir="\"$(sysconfdir)\""
$(TARGET)_CFLAGS-$(STATIC_CONFIG)+=-DSTATIC_CONFIG
$(TARGET)_SOURCES-$(FILE_CONFIG)+=config.c
$(TARGET)_LIBRARY-$(FILE_CONFIG)+=config

$(TARGET)_LIBS-$(MBEDTLS)+=mod_mbedtls
$(TARGET)_LIBRARY-$(MBEDTLS)+=mbedtls mbedx509 mbedcrypto
$(TARGET)_CFLAGS-$(MBEDTLS)+=-DMBEDTLS
$(TARGET)_LIBS-$(SENDFILE)+=mod_sendfile
$(TARGET)_CFLAGS-$(SENDFILE)+=-DSTATIC_FILE -DSENDFILE
$(TARGET)_LIBS-$(STATIC_FILE)+=mod_static_file utils_mod
$(TARGET)_CFLAGS-$(STATIC_FILE)+=-DSTATIC_FILE
$(TARGET)_LIBS-$(CGI)+=mod_cgi utils_mod
$(TARGET)_CFLAGS-$(CGI)+=-DCGI
$(TARGET)_LIBS-$(AUTH)+=mod_auth
$(TARGET)_CFLAGS-$(AUTH)+=-DAUTH
$(TARGET)_CFLAGS-$(AUTHN_BASIC_CONF)+=-DAUTHN_BASIC_CONF

$(TARGET)_CFLAGS-$(DEBUG)+=-g -DDEBUG

ifeq ($(STATIC),y)
	static=s
endif

$(static)lib-$(STATIC_FILE)+=utils_mod
utils_mod_SOURCES=utils.c
utils_mod_CFLAGS+=-I../libhttpserver/include 

utils_mod_CFLAGS-$(DEBUG)+=-g -DDEBUG

$(static)lib-$(CGI)+=mod_cgi
mod_cgi_SOURCES+=mod_cgi.c
mod_cgi_CFLAGS+=-I../libhttpserver/include/

mod_cgi_CFLAGS-$(DEBUG)+=-g -DDEBUG

$(static)lib-$(STATIC_FILE)+=mod_static_file
mod_static_file_SOURCES+=mod_static_file.c
mod_static_file_CFLAGS+=-I../libhttpserver/include
mod_static_file_CFLAGS-$(SENDFILE)+=-DSENDFILE

mod_static_file_CFLAGS-$(DEBUG)+=-g -DDEBUG

$(static)lib-$(SENDFILE)+=mod_sendfile
{'fraction_non_alphanumeric': 0.20023980815347722, 'fraction_numerical': 0.0017985611510791368, 'mean_word_length': 9.627388535031848, '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': '858776', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1327, 'n_words': 116}