<commit_before>CC = gcc
CFLAGS = --std=gnu99 -Wall -ggdb -fPIC
OBJECTS = statsd.o batch.o
LIBRARY = libstatsd
LIB_VERSION = 1.0.0

all : lib

lib : $(OBJECTS)
	$(CC) -shared -W1,-soname,$(LIBRARY).so.1 -o $(LIBRARY).so.$(LIB_VERSION) $(OBJECTS)

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

clean : 
	-rm *.o
	-rm *.gch
	-rm $(LIBRARY).so*

install : 

uninstall : 

.PHONY: clean install uninstall<commit_msg>Added build functions for windows and unix libraries.<commit_after>CC = gcc
CFLAGS = --std=gnu99 -Wall
OBJECTS = statsd.o batch.o
LIBRARY = libstatsd
LIB_VERSION = 1.0.0
OS = unix

ifdef DEBUG
CFLAGS += -ggdb
else
CFLAGS += -O3
endif

all : lib

ifeq ($(OS), unix)
CFLAGS += -fPIC

lib : $(OBJECTS)
	$(CC) -shared -W1,-soname,$(LIBRARY).so.1 -o $(LIBRARY).so.$(LIB_VERSION) $(OBJECTS)

else
CFLAGS += -D ADD_EXPORTS

lib: $(OBJECTS)
	$(CC) -s -shared -mwindows -o $(LIBRARY).dll $(OBJECTS) -lWs2_32

endif

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

clean : 
	-rm *.o
	-rm *.gch
	-rm $(LIBRARY).so*

install : 

uninstall : 

.PHONY: clean install uninstall
{'fraction_non_alphanumeric': 0.18980169971671387, 'fraction_numerical': 0.0169971671388102, 'mean_word_length': 3.2063492063492065, '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': '4237790', 'n_tokens_mistral': 488, 'n_tokens_neox': 454, 'n_words': 120}