<commit_before># Global configuration
CC = gcc
EXT = c
LIB = -lgmp
MODULES = $(wildcard src/*.$(EXT))
FLAGS += -O2 -g

# Compiling main
OBJS := ${MODULES:src/%.$(EXT)=bin/%.o}

all: $(OBJS)
	$(CC) -o bin/main $(OBJS) $(LIB)

# Run
run:
	bin/main

# Cleaning compilation
clean:
	rm -rf bin/*.o bin/*~

bin/%.o : src/%.$(EXT)
	$(CC) -c $< -o $@ $(FLAGS) $(INCLUDE)<commit_msg>fix makefile and make it more general<commit_after>#--------------------------------------------
# predefine rule
#--------------------------------------------
.PHONY: clean

#--------------------------------------------
# Tool configuration
#--------------------------------------------
CC = gcc
LINKER = $(CC)
EXT = c
LIB = -lgmp
MKDIR = mkdir -p
INCLUDE = 
CFLAGS += -O2 -g
LDFLAGS = 

#--------------------------------------------
# Path configuration
#--------------------------------------------
MODULES = $(wildcard src/*.$(EXT))
SOURCEDIR = src
BINDIR = bin
TARGET = main

#--------------------------------------------
# Suffix
#--------------------------------------------
$(BINDIR)/%.o : $(SOURCEDIR)/%.$(EXT)
	$(CC) -c $< -o $@ $(CFLAGS) $(INCLUDE)

# Compiling main
OBJS := ${MODULES:src/%.$(EXT)=bin/%.o}

#--------------------------------------------
# target
#--------------------------------------------
all: mkdir $(OBJS)
	$(LINKER) -o $(BINDIR)/$(TARGET) $(OBJS) $(LIB) $(LDFLAGS)

mkdir: 
	$(MKDIR) $(BINDIR)

# Run
run:
	$(BINDIR)/$(TARGET)

# Cleaning compilation
clean:
	rm -rf $(BINDIR)/*.o
	rm -rf $(BINDIR)/*~
{'fraction_non_alphanumeric': 0.4535809018567639, 'fraction_numerical': 0.001326259946949602, 'mean_word_length': 1.2289512555391433, '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': '428787', 'n_tokens_mistral': 490, 'n_tokens_neox': 478, 'n_words': 119}