<commit_before>CC := $(CROSS)gcc
LD := $(CC)
AR := $(CROSS)ar
CTAGS := $(CROSS)ctags

ENV:=hosted

VERSION :=\"0.3-dev\"

override CFLAGS := -fPIC -Wall -Wextra -Wno-unused-parameter -std=gnu99 $(CFLAGS)
override CPPFLAGS := -I ./include -DVERSION=$(VERSION) $(CPPFLAGS)
override LDFLAGS := $(LDFLAGS)

ifeq ($(ENV),freestanding)
override CFLAGS += -ffreestanding -nostdinc
endif

DESTDIR :=/
PREFIX :=/usr/local
VERSION :=0.1

.PHONY: all clean install tags static shared

all: static
ifeq ($(ENV),hosted)
all: shared
endif

objects :=

objects += src/libf.o
objects += src/list.o src/list_iterate.o
objects += src/hash.o
objects += src/fnv.o
objects += src/fnv_str.o src/str.o src/str_cmp.o
ifeq ($(ENV),hosted)
objects += src/str_fmt.o src/str_io.o src/str_build.o
objects += src/sock.o
endif

tags:
	$(CTAGS) -R

static: libf.a

shared: libf.so

libf.so: $(objects)
	$(LD) $(LDFLAGS) -shared -o $@ $^

libf.a: $(objects)
	$(AR) rs $@ $^
<commit_msg>Link allocation functions in library<commit_after>CC := $(CROSS)gcc
LD := $(CC)
AR := $(CROSS)ar
CTAGS := $(CROSS)ctags

ENV:=hosted

VERSION :=\"0.3-dev\"

override CFLAGS := -fPIC -Wall -Wextra -Wno-unused-parameter -std=gnu99 $(CFLAGS)
override CPPFLAGS := -I ./include -DVERSION=$(VERSION) $(CPPFLAGS)
override LDFLAGS := $(LDFLAGS)

ifeq ($(ENV),freestanding)
override CFLAGS += -ffreestanding -nostdinc
endif

DESTDIR :=/
PREFIX :=/usr/local
VERSION :=0.1

.PHONY: all clean install tags static shared

all: static
ifeq ($(ENV),hosted)
all: shared
endif

objects :=

objects += src/libf.o
objects += src/list.o src/list_iterate.o
objects += src/hash.o
objects += src/fnv.o
objects += src/fnv_str.o src/str.o src/str_cmp.o
objects += src/alloc.o
ifeq ($(ENV),hosted)
objects += src/str_fmt.o src/str_io.o src/str_build.o
objects += src/sock.o
endif

tags:
	$(CTAGS) -R

static: libf.a

shared: libf.so

libf.so: $(objects)
	$(LD) $(LDFLAGS) -shared -o $@ $^

libf.a: $(objects)
	$(AR) rs $@ $^

{'fraction_non_alphanumeric': 0.18442622950819673, 'fraction_numerical': 0.006147540983606557, 'mean_word_length': 4.139473684210526, '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': '1125188', 'n_tokens_mistral': 811, 'n_tokens_neox': 780, 'n_words': 194}