<commit_before>MF=Mf-$(KERNEL)-$(ARCH).mk

LIBTARGET=$(OBJDIR)/$(PROG)


$(SNAME): $(MF) $(SOURCES)
	@mkdir -p $(OBJDIR)
	@mkdir -p $(LIBARCHDIR)
	@$(MAKE) -f $(MF) $(SNAME)

$(DNAME): $(MF) $(SOURCES)
	@mkdir -p $(OBJDIR)
	@mkdir -p $(LIBARCHDIR)
	@$(MAKE) -f $(MF) $(DNAME)

$(MF): Makefile
	@rm -f $(MF)
	@echo "CFLAGS=$(CFLAGS)" >> $(MF)
	@echo "LDFLAGS=$(LDFLAGS)" >> $(MF)
	@echo -n "OBJS=" >> $(MF) 
	@for f in $(SOURCES) ; do \
		OF=$(OBJDIR)/`basename "$${f%.*}.o"` ; \
		echo -n " $${OF}" >> $(MF) ;\
	done
	@echo "" >> $(MF)
	@echo "$(SNAME) : \$$(OBJS)" >> $(MF)
	@echo "	\$$(AR) rcs $(SNAME) \$$(OBJS)" >> $(MF)
	@echo "" >> $(MF)
	@echo "$(DNAME) : \$$(OBJS)" >> $(MF)
	@echo "	\$$(LD) \$$(LDFLAGS) -shared -o $(DNAME) \$$(OBJS) $(LIBS)" >> $(MF)
	@echo "" >> $(MF)
#	@echo "	\$$(CC) -o $(PROGTARGET) \$$(LDFLAGS) \$$(OBJS) $(LIBS)" >> $(MF) 			
	@for f in $(SOURCES) ; do \
		OF=$(OBJDIR)/`basename "$${f%.*}.o"` ; \
		echo $${OF}: $$f  >> $(MF) ; \
		echo "	\$$(CC) -c \$$(CFLAGS) -o $${OF} $${f}" >> $(MF) ; \
	done


clean:
	rm -rf $(OBJDIR)
	rm -f $(SNAME)
	rm -f $(DNAME)
	rm -f $(MF)

install: $(PROGTARGET)
	mkdir -p $(INSTALL_BINDIR)
	install $(PROGTARGET) $(INSTALL_BINDIR)/$(PROG)
<commit_msg>Verbosity option V=@<commit_after>MF=Mf-$(KERNEL)-$(ARCH).mk

LIBTARGET=$(OBJDIR)/$(PROG)

V:=@

$(SNAME): $(MF) $(SOURCES)
	@mkdir -p $(OBJDIR)
	@mkdir -p $(LIBARCHDIR)
	@$(MAKE) -f $(MF) $(SNAME)

$(DNAME): $(MF) $(SOURCES)
	@mkdir -p $(OBJDIR)
	@mkdir -p $(LIBARCHDIR)
	@$(MAKE) -f $(MF) $(DNAME)

$(MF): Makefile
	@rm -f $(MF)
	@echo "CFLAGS=$(CFLAGS)" >> $(MF)
	@echo "LDFLAGS=$(LDFLAGS)" >> $(MF)
	@echo -n "OBJS=" >> $(MF) 
	@for f in $(SOURCES) ; do \
		OF=$(OBJDIR)/`basename "$${f%.*}.o"` ; \
		echo -n " $${OF}" >> $(MF) ;\
	done
	@echo "" >> $(MF)
	@echo "$(SNAME) : \$$(OBJS)" >> $(MF)
	@echo "	@echo Creating static library: $(SNAME)" >> $(MF) 
	@echo "	$(V)\$$(AR) rcs $(SNAME) \$$(OBJS)" >> $(MF)
	@echo "" >> $(MF)
	@echo "$(DNAME) : \$$(OBJS)" >> $(MF)
	@echo "	@echo Creating dynamic library: $(DNAME)" >> $(MF) 
	@echo "	$(V)\$$(LD) \$$(LDFLAGS) -shared -o $(DNAME) \$$(OBJS) $(LIBS)" >> $(MF)
	@echo "" >> $(MF)
#	@echo "	\$$(CC) -o $(PROGTARGET) \$$(LDFLAGS) \$$(OBJS) $(LIBS)" >> $(MF) 			
	@for f in $(SOURCES) ; do \
		OF=$(OBJDIR)/`basename "$${f%.*}.o"` ; \
		echo $${OF}: $$f  >> $(MF) ; \
		echo "	@if [ \"\$$(V)\" = \"@\" ]; then echo \"Compiling: $${f}\" ; fi" >> $(MF) ; \
		echo "	\$$(V)\$$(CC) -c \$$(CFLAGS) -o $${OF} $${f}" >> $(MF) ; \
	done


clean:
	rm -rf $(OBJDIR)
	rm -f $(SNAME)
	rm -f $(DNAME)
	rm -f $(MF)

install: $(PROGTARGET)
	mkdir -p $(INSTALL_BINDIR)
	install $(PROGTARGET) $(INSTALL_BINDIR)/$(PROG)

{'fraction_non_alphanumeric': 0.33632958801498125, 'fraction_numerical': 0.0, 'mean_word_length': 3.474036850921273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 65, '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': '2787149', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1263, 'n_words': 292}