<commit_before>PRODUCTION		:= 0
PRODUCTION_VERSION	:= 6.1.3
PRODUCTION_YEAR		:= 2020

ifeq ($(PRODUCTION),1)
VERSION_TAG		:= $(PRODUCTION_VERSION)
else
VERSION_TAG		:= $(shell git describe --tags || echo $(PRODUCTION_VERSION))
endif
VERSION_YEAR		:= $(shell echo $(PRODUCTION_YEAR))

PREFIX		?= /usr/local
BINDIR		= $(DESTDIR)$(PREFIX)/bin
MANDIR		= $(DESTDIR)$(PREFIX)/share/man

HOSTOS		:= $(shell uname -s)

CC		?= gcc
CFLAGS		?= -O3 -Wall -Wextra
CFLAGS		+= -std=gnu99
DEFS		= -DVERSION_TAG=\"$(VERSION_TAG)\" -DVERSION_YEAR=\"$(VERSION_YEAR)\"

INSTALL		?= install
INSTFLAGS	=

ifeq ($(HOSTOS), Linux)
INSTFLAGS += -D
endif

OPENSSL_LIBS=$(shell pkg-config --libs openssl)
OPENSSL_CFLAGS=$(shell pkg-config --cflags openssl)
CURL_LIBS=$(shell pkg-config --libs libcurl)
CURL_CFLAGS=$(shell pkg-config --cflags libcurl)

TOOLS=
TOOLS+=hcxpcapngtool
hcxpcapngtool_libs=-lz $(OPENSSL_LIBS)
hcxpcapngtool_cflags=$(OPENSSL_CFLAGS)
TOOLS+=hcxhashtool
hcxhashtool_libs=$(OPENSSL_LIBS) $(CURL_LIBS)
hcxhashtool_cflags=$(OPENSSL_CFLAGS) $(CURL_CFLAGS)<commit_msg>make: use pkg-config to find zlib<commit_after>PRODUCTION		:= 0
PRODUCTION_VERSION	:= 6.1.3
PRODUCTION_YEAR		:= 2020

ifeq ($(PRODUCTION),1)
VERSION_TAG		:= $(PRODUCTION_VERSION)
else
VERSION_TAG		:= $(shell git describe --tags || echo $(PRODUCTION_VERSION))
endif
VERSION_YEAR		:= $(shell echo $(PRODUCTION_YEAR))

PREFIX		?= /usr/local
BINDIR		= $(DESTDIR)$(PREFIX)/bin
MANDIR		= $(DESTDIR)$(PREFIX)/share/man

HOSTOS		:= $(shell uname -s)

CC		?= gcc
CFLAGS		?= -O3 -Wall -Wextra
CFLAGS		+= -std=gnu99
DEFS		= -DVERSION_TAG=\"$(VERSION_TAG)\" -DVERSION_YEAR=\"$(VERSION_YEAR)\"

INSTALL		?= install
INSTFLAGS	=

ifeq ($(HOSTOS), Linux)
INSTFLAGS += -D
endif

OPENSSL_LIBS=$(shell pkg-config --libs openssl)
OPENSSL_CFLAGS=$(shell pkg-config --cflags openssl)
CURL_LIBS=$(shell pkg-config --libs libcurl)
CURL_CFLAGS=$(shell pkg-config --cflags libcurl)
Z_LIBS=$(shell pkg-config --libs zlib)
Z_CFLAGS=$(shell pkg-config --cflags zlib)

TOOLS=
TOOLS+=hcxpcapngtool
hcxpcapngtool_libs=$(OPENSSL_LIBS) $(Z_LIBS)
hcxpcapngtool_cflags=$(OPENSSL_CFLAGS) $(Z_CFLAGS)
TOOLS+=hcxhashtool
hcxhashtool_libs=$(OPENSSL_LIBS) $(CURL_LIBS)
hcxhashtool_cflags=$(OPENSSL_CFLAGS) $(CURL_CFLAGS)
{'fraction_non_alphanumeric': 0.15862377122430743, 'fraction_numerical': 0.010723860589812333, 'mean_word_length': 5.889230769230769, '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': '2413304', 'n_tokens_mistral': 986, 'n_tokens_neox': 904, 'n_words': 171}