<commit_before>CFLAGS+=-I../include -I../deps

LIB_SRC=../src/spdr-common.c
LIB_SRC+=../src/chars-common.c
LIB_SRC+=../src/allocator.c
LIB=libspdr.a


GUESSED_PLATFORM=posix
ifeq ($(shell uname),Darwin)
GUESSED_PLATFORM=osx
endif


PLATFORM?=$(GUESSED_PLATFORM)

ifeq ($(PLATFORM),posix)
LIB_SRC+=../src/spdr-posix.c
LIB_SRC+=../src/chars-posix.c
LIB_SRC+=../src/spdr-thread-posix.c
LIB_SRC+=../src/clock-posix.c
LIB_LIBS+=-lrt
endif

ifeq ($(PLATFORM),osx)
LIB_SRC+=../src/spdr-posix.c
LIB_SRC+=../src/chars-posix.c
LIB_SRC+=../src/spdr-thread-posix.c
LIB_SRC+=../src/clock-osx.c
endif

ifeq ($(PLATFORM),linux)
LIB_SRC+=../src/spdr-posix.c
LIB_SRC+=../src/chars-posix.c
LIB_SRC+=../src/spdr-linux.c<commit_msg>Fix compilation of examples<commit_after>CFLAGS+=-I../include -I../deps

LIB_SRC=../src/spdr-common.c
LIB_SRC+=../src/chars-common.c
LIB_SRC+=../src/allocator-common.c
LIB=libspdr.a


GUESSED_PLATFORM=posix
ifeq ($(shell uname),Darwin)
GUESSED_PLATFORM=osx
endif


PLATFORM?=$(GUESSED_PLATFORM)

ifeq ($(PLATFORM),posix)
LIB_SRC+=../src/spdr-posix.c
LIB_SRC+=../src/chars-posix.c
LIB_SRC+=../src/spdr-thread-posix.c
LIB_SRC+=../src/clock-posix.c
LIB_LIBS+=-lrt
endif

ifeq ($(PLATFORM),osx)
LIB_SRC+=../src/spdr-posix.c
LIB_SRC+=../src/chars-posix.c
LIB_SRC+=../src/spdr-thread-posix.c
LIB_SRC+=../src/clock-osx.c
endif

ifeq ($(PLATFORM),linux)
LIB_SRC+=../src/spdr-posix.c
LIB_SRC+=../src/chars-posix.c
LIB_SRC+=../src/spdr-linux.c
{'fraction_non_alphanumeric': 0.2235294117647059, 'fraction_numerical': 0.0, 'mean_word_length': 4.258181818181818, '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': '5170515', 'n_tokens_mistral': 680, 'n_tokens_neox': 665, 'n_words': 68}