<commit_before>CFLAGS=-g -Wall -O0 -fPIC
LDFLAGS=-lcurl -lyajl -lpthread

all: cetcdctrl libcetcd.so
clean:
	rm -f cetcdctrl libcetcd.so *.o sds/*.o

libcetcd.so: cetcd_array.o sds/sds.o cetcd.o
	gcc $(LDFLAGS) -shared -o libcetcd.so cetcd_array.o sds/sds.o cetcd.o
cetcdctrl:cetcd_array.o sds/sds.o cetcd.o
sds/sds.o:sds/sds.c sds/sds.h
cetcd_array.o:cetcd_array.c cetcd_array.h
cetcd.o:cetcd.c cetcd.h cetcd_json_parser.h
<commit_msg>Add install action in Makefile<commit_after>CFLAGS=-g -Wall -O0 -fPIC
LDFLAGS=-lcurl -lyajl -lpthread
prefix=/usr/local

all: cetcdctrl libcetcd.so
clean:
	rm -f cetcdctrl libcetcd.so *.o sds/*.o
install:
	install -S -d  libcetcd.so $(prefix)/lib

libcetcd.so: cetcd_array.o sds/sds.o cetcd.o
	gcc $(LDFLAGS) -shared -o libcetcd.so cetcd_array.o sds/sds.o cetcd.o
cetcdctrl:cetcd_array.o sds/sds.o cetcd.o
sds/sds.o:sds/sds.c sds/sds.h
cetcd_array.o:cetcd_array.c cetcd_array.h
cetcd.o:cetcd.c cetcd.h cetcd_json_parser.h

{'fraction_non_alphanumeric': 0.13465553235908143, 'fraction_numerical': 0.0020876826722338203, 'mean_word_length': 4.0473684210526315, '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': '1927267', 'n_tokens_mistral': 490, 'n_tokens_neox': 473, 'n_words': 89}