<commit_before>CC      := clang
CFLAGS  := -Wall -ggdb -std=c99 -D_XOPEN_SOURCE=600
LDFLAGS := -shared -fPIC -lass -ggdb

UNAME   := $(shell uname -s)
ifeq ($(UNAME), Darwin)
	TARGET  := libOptimASS.dylib
# I am aware windows does not have uname. Don't build this on windows.
# Cross compile from lunix.
else ifeq ($(UNAME), Windows)
	TARGET  := libOptimASS.dll
# Do any other operating systems use weird extensions for their dynamic
# libraries?
else
	TARGET  := libOptimASS.so
endif

SOURCES := $(wildcard src/*.c)
OBJECTS := $(SOURCES:.c=.o)

.PHONY: all clean

all: $(TARGET)

$(TARGET): $(OBJECTS)
	@echo LINK $@
	@$(CXX) $^ $(LDFLAGS) -o $@

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

clean:
	rm -rf $(TARGET) $(OBJECTS)<commit_msg>Makefile: use the proper linker.<commit_after>CC      := clang
CFLAGS  := -Wall -ggdb -std=c99 -D_XOPEN_SOURCE=600
LDFLAGS := -shared -fPIC -lass -ggdb

UNAME   := $(shell uname -s)
ifeq ($(UNAME), Darwin)
	TARGET  := libOptimASS.dylib
# I am aware windows does not have uname. Don't build this on windows.
# Cross compile from lunix.
else ifeq ($(UNAME), Windows)
	TARGET  := libOptimASS.dll
# Do any other operating systems use weird extensions for their dynamic
# libraries?
else
	TARGET  := libOptimASS.so
endif

SOURCES := $(wildcard src/*.c)
OBJECTS := $(SOURCES:.c=.o)

.PHONY: all clean

all: $(TARGET)

$(TARGET): $(OBJECTS)
	@echo LINK $@
	@$(CC) $^ $(LDFLAGS) -o $@

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

clean:
	rm -rf $(TARGET) $(OBJECTS)
{'fraction_non_alphanumeric': 0.17173051519154559, 'fraction_numerical': 0.0066050198150594455, 'mean_word_length': 3.647239263803681, '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': '4237879', 'n_tokens_mistral': 615, 'n_tokens_neox': 571, 'n_words': 183}