<commit_before>
OS=$(shell uname -s)
ARCH=$(shell uname -m)

ifeq ($(ARCH), armv6l)
CC = gcc
else
CC = clang
endif
ASAN = 0

###
### CFLAGS
###

CFLAGS  = -O1 -MMD -g
CFLAGS += -Wall -Werror
ifneq ($(ARCH), armv6l)
CFLAGS += -Wshadow -Wextra
endif
CFLAGS += -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers

CFLAGS += -fno-omit-frame-pointer
CFLAGS += -fstack-protector
ifeq ($(ASAN), 1)
ifneq ($(OS), Darwin)
CFLAGS += -fsanitize=address
endif
endif

ifeq ($(OS), OpenBSD)
CFLAGS += -I/usr/local/include
endif

CFLAGS += -Ipublic -Ilib/public -Icore/ -Iapps/bitc/ -Iext/public

###
### LDOPTS
###

LDOPTS =
ifneq ($(OS), Darwin)
ifeq ($(ASAN), 1)
LDOPTS += -fsanitize=address
endif
LDOPTS += -rdynamic
endif

ifdef P
CFLAGS += -pg
LDOPTS += -pg
endif


###
### the rest
###

LIBS  = -lpthread -lssl -lcrypto -lm -lncurses -lpanel -lform -lcurl
LIBS += -lleveldb -lsnappy -lstdc++

ifeq ($(OS), OpenBSD)
LIBS += -L/usr/local/lib -lexecinfo
LIBS := $(subst -lsnappy,,$(LIBS))
endif

VGRND  = valgrind --log-file=/tmp/valgrind.log --leak-check=full --error-exitcode=255
BLDDIR = bld
MKBLDDIR = @mkdir -p $(BLDDIR)
BTC_BIN  = bitc
ALLTARGETS = bitc

ifndef V
  QUIET_CC   = @echo ' CC   ' $<;
  QUIET_LINK = @echo ' LINK ' $@;<commit_msg>remove useless directive.<commit_after>
OS=$(shell uname -s)
ARCH=$(shell uname -m)

ifeq ($(ARCH), armv6l)
CC = gcc
else
CC = clang
endif
ASAN = 0

###
### CFLAGS
###

CFLAGS  = -O1 -MMD -g
CFLAGS += -Wall -Werror
ifneq ($(ARCH), armv6l)
CFLAGS += -Wshadow -Wextra
endif
CFLAGS += -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers

CFLAGS += -fno-omit-frame-pointer
CFLAGS += -fstack-protector
ifeq ($(ASAN), 1)
ifneq ($(OS), Darwin)
CFLAGS += -fsanitize=address
endif
endif

ifeq ($(OS), OpenBSD)
CFLAGS += -I/usr/local/include
endif

CFLAGS += -Ipublic -Ilib/public -Icore/ -Iapps/bitc/ -Iext/public

###
### LDOPTS
###

LDOPTS =
ifneq ($(OS), Darwin)
ifeq ($(ASAN), 1)
LDOPTS += -fsanitize=address
endif
LDOPTS += -rdynamic
endif

ifdef P
CFLAGS += -pg
LDOPTS += -pg
endif


###
### the rest
###

LIBS  = -lpthread -lssl -lcrypto -lm -lncurses -lpanel -lform -lcurl
LIBS += -lleveldb -lsnappy -lstdc++

ifeq ($(OS), OpenBSD)
LIBS += -L/usr/local/lib -lexecinfo
LIBS := $(subst -lsnappy,,$(LIBS))
endif

VGRND  = valgrind --log-file=/tmp/valgrind.log --leak-check=full --error-exitcode=255
BLDDIR = bld
BTC_BIN  = bitc
ALLTARGETS = bitc

ifndef V
  QUIET_CC   = @echo ' CC   ' $<;
  QUIET_LINK = @echo ' LINK ' $@;
{'fraction_non_alphanumeric': 0.1854225070084101, 'fraction_numerical': 0.007208650380456548, 'mean_word_length': 3.5583941605839415, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1899348', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1060, 'n_words': 262}