<commit_before>CC := gcc

EXTRA_WARNINGS := -Wall -Wextra -ansi -std=c99 -Wno-unused-parameter

CFLAGS := -ggdb -Wall $(EXTRA_WARNINGS)

all:

libscrobble.a: scrobble.o

test: test.o libscrobble.a
binaries += test

all: libscrobble.a $(binaries)

# pretty print
V = @
Q = $(V:y=)
QUIET_CC    = $(Q:@=@echo '   CC         '$@;)
QUIET_LINK  = $(Q:@=@echo '   LINK       '$@;)
QUIET_CLEAN = $(Q:@=@echo '   CLEAN      '$@;)

%.a::
	$(QUIET_LINK)$(AR) rcs $@ $^

$(binaries):
	$(QUIET_LINK)$(CC) $(LDFLAGS) $(LIBS) -o $@ $^

%.o:: %.c
	$(QUIET_CC)$(CC) $(CFLAGS) -MMD -o $@ -c $<
<commit_msg>build: start using glib<commit_after>CC := gcc

EXTRA_WARNINGS := -Wall -Wextra -ansi -std=c99 -Wno-unused-parameter

CFLAGS := -ggdb -Wall $(EXTRA_WARNINGS)

GLIB_CFLAGS := $(shell pkg-config --cflags glib-2.0)
GLIB_LIBS := $(shell pkg-config --libs glib-2.0)

all:

libscrobble.a: scrobble.o
libscrobble.a: CFLAGS := $(CFLAGS) $(GLIB_CFLAGS)

test: test.o libscrobble.a
test: LIBS := $(LIBS) $(GLIB_LIBS)
binaries += test

all: libscrobble.a $(binaries)

# pretty print
V = @
Q = $(V:y=)
QUIET_CC    = $(Q:@=@echo '   CC         '$@;)
QUIET_LINK  = $(Q:@=@echo '   LINK       '$@;)
QUIET_CLEAN = $(Q:@=@echo '   CLEAN      '$@;)

%.a::
	$(QUIET_LINK)$(AR) rcs $@ $^

$(binaries):
	$(QUIET_LINK)$(CC) $(LDFLAGS) $(LIBS) -o $@ $^

%.o:: %.c
	$(QUIET_CC)$(CC) $(CFLAGS) -MMD -o $@ -c $<

{'fraction_non_alphanumeric': 0.23435225618631733, 'fraction_numerical': 0.005822416302765648, 'mean_word_length': 3.378980891719745, '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': '2778275', 'n_tokens_mistral': 667, 'n_tokens_neox': 648, 'n_words': 125}