<commit_before>VERSION = 1
PATCHLEVEL = 0
EXTRAVERSION = beta1

LIBRARY	= libmtdev
MODULES = src

o_src	= match iobuf caps core

TARGETS	+= test/mtdev-mapgen
TARGETS	+= test/mtdev

OBJECTS	= $(addsuffix .o,\
	$(foreach mod,$(MODULES),\
	$(addprefix $(mod)/,$(o_$(mod)))))

TBIN	= $(addprefix bin/,$(TARGETS))
SLIB	= $(addprefix obj/,$(LIBRARY).a)
DLIB	= $(addprefix obj/,$(LIBRARY).so)
TOBJ	= $(addprefix obj/,$(addsuffix .o,$(TARGETS)))
OBJS	= $(addprefix obj/,$(OBJECTS))
LIBS	= 

DESTLIB	= usr/lib

INCLUDE = -Iinclude
OPTS	= -O3 -fPIC

.PHONY: all clean
.PRECIOUS: obj/%.o

all:	$(OBJS) $(SLIB) $(DLIB) $(TOBJ) $(TBIN)

bin/%:	obj/%.o $(SLIB)
	@mkdir -p $(@D)
	gcc $< -o $@ $(SLIB) $(LIBS)

$(SLIB): $(OBJS) $(XOBJS)
	@rm -f $(SLIB)
	ar qc $@ $(OBJS) $(XOBJS)

$(DLIB): $(OBJS) $(XOBJS)
	@rm -f $(DLIB)
	gcc -shared $(OBJS) $(XOBJS) -Wl,-soname -Wl,$(LIBRARY) -o $@

obj/%.o: %.c
	@mkdir -p $(@D)
	gcc $(INCLUDE) $(OPTS) -c $< -o $@

clean:
	rm -rf bin obj

distclean: clean
	rm -rf debian/*.log debian/files

install: $(SLIB) $(DLIB)
	install -d $(DESTDIR)/$(DESTLIB)
	install -m 755 $(SLIB) $(DESTDIR)/$(DESTLIB)
	install -m 755 $(DLIB) $(DESTDIR)/$(DESTLIB)
	ldconfig -n $(DESTDIR)/$(DESTLIB)<commit_msg>make: Correct bad library name<commit_after>VERSION = 1
PATCHLEVEL = 0
EXTRAVERSION = beta1

LIBRARY	= libmtdev
MODULES = src

o_src	= match iobuf caps core

TARGETS	+= test/mtdev-mapgen
TARGETS	+= test/mtdev

OBJECTS	= $(addsuffix .o,\
	$(foreach mod,$(MODULES),\
	$(addprefix $(mod)/,$(o_$(mod)))))

TBIN	= $(addprefix bin/,$(TARGETS))
SLIB	= $(addprefix obj/,$(LIBRARY).a)
DLIB	= $(addprefix obj/,$(LIBRARY).so)
TOBJ	= $(addprefix obj/,$(addsuffix .o,$(TARGETS)))
OBJS	= $(addprefix obj/,$(OBJECTS))
LIBS	= 

DESTLIB	= usr/lib

INCLUDE = -Iinclude
OPTS	= -O3 -fPIC

.PHONY: all clean
.PRECIOUS: obj/%.o

all:	$(OBJS) $(SLIB) $(DLIB) $(TOBJ) $(TBIN)

bin/%:	obj/%.o $(SLIB)
	@mkdir -p $(@D)
	gcc $< -o $@ $(SLIB) $(LIBS)

$(SLIB): $(OBJS) $(XOBJS)
	@rm -f $(SLIB)
	ar qc $@ $(OBJS) $(XOBJS)

$(DLIB): $(OBJS) $(XOBJS)
	@rm -f $(DLIB)
	gcc -shared $(OBJS) $(XOBJS) -Wl,-soname -Wl,$(LIBRARY).so -o $@

obj/%.o: %.c
	@mkdir -p $(@D)
	gcc $(INCLUDE) $(OPTS) -c $< -o $@

clean:
	rm -rf bin obj

distclean: clean
	rm -rf debian/*.log debian/files

install: $(SLIB) $(DLIB)
	install -d $(DESTDIR)/$(DESTLIB)
	install -m 755 $(SLIB) $(DESTDIR)/$(DESTLIB)
	install -m 755 $(DLIB) $(DESTDIR)/$(DESTLIB)
	ldconfig -n $(DESTDIR)/$(DESTLIB)
{'fraction_non_alphanumeric': 0.23669123669123668, 'fraction_numerical': 0.00819000819000819, 'mean_word_length': 3.945344129554656, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3641619', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1129, 'n_words': 271}