<commit_before>LIB_HOME_DIR = ..
LIB_SRC_DIR  = $(LIB_HOME_DIR)/src
LIB_DIST_DIR = $(LIB_HOME_DIR)/dist
LIB_INC_DIR  = $(LIB_HOME_DIR)/src
EXAMPLES_DIR = $(LIB_HOME_DIR)/example

# Set of src/inc files used in build process
INC_FILES   = $(wildcard $(LIB_SRC_DIR)/**/*.hpp) $(wildcard $(LIB_SRC_DIR)/*.hpp)
SRC_FILES   = $(wildcard $(LIB_SRC_DIR)/**/*.cpp) $(wildcard $(LIB_SRC_DIR)/*.cpp)

OBJ_FILES   = $(patsubst %.cpp,%.o, $(SRC_FILES))


# Compiler/Linker required information
TARGET   = socket-cpp.so
CXX      = g++
CXXFLAGS = -g -I$(LIB_INC_DIR)
LDFLAGS  = -shared -fpic

default: $(TARGET)

$(TARGET): $(OBJ_FILES)
	@mkdir -p $(LIB_DIST_DIR)
	$(CXX) $(CXXFLAGS) $(SRC_FILES) -o $(LIB_DIST_DIR)/$(TARGET) $(LDFLAGS)

examples:
	$(CXX) $(CXXFLAGS) $(SRC_FILES) $(EXAMPLES_DIR)/demo_tcp_server.cpp -o $(LIB_DIST_DIR)/demo_tcp_server.out
	$(CXX) $(CXXFLAGS) $(SRC_FILES) $(EXAMPLES_DIR)/demo_tcp_client.cpp -o $(LIB_DIST_DIR)/demo_tcp_client.out<commit_msg>Add clean rule to make<commit_after>LIB_HOME_DIR = ..
LIB_SRC_DIR  = $(LIB_HOME_DIR)/src
LIB_DIST_DIR = $(LIB_HOME_DIR)/dist
LIB_INC_DIR  = $(LIB_HOME_DIR)/src
EXAMPLES_DIR = $(LIB_HOME_DIR)/example

# Set of src/inc files used in build process
INC_FILES   = $(wildcard $(LIB_SRC_DIR)/**/*.hpp) $(wildcard $(LIB_SRC_DIR)/*.hpp)
SRC_FILES   = $(wildcard $(LIB_SRC_DIR)/**/*.cpp) $(wildcard $(LIB_SRC_DIR)/*.cpp)

OBJ_FILES   = $(patsubst %.cpp,%.o, $(SRC_FILES))


# Compiler/Linker required information
TARGET   = socket-cpp.so
CXX      = g++
CXXFLAGS = -g -I$(LIB_INC_DIR)
LDFLAGS  = -shared -fpic

default: $(TARGET)

$(TARGET): $(OBJ_FILES)
	@mkdir -p $(LIB_DIST_DIR)
	$(CXX) $(CXXFLAGS) $(SRC_FILES) -o $(LIB_DIST_DIR)/$(TARGET) $(LDFLAGS)

examples:
	$(CXX) $(CXXFLAGS) $(SRC_FILES) $(EXAMPLES_DIR)/demo_tcp_server.cpp -o $(LIB_DIST_DIR)/demo_tcp_server.out
	$(CXX) $(CXXFLAGS) $(SRC_FILES) $(EXAMPLES_DIR)/demo_tcp_client.cpp -o $(LIB_DIST_DIR)/demo_tcp_client.out

clean:
	@rm -r $(OBJ_FILES) $(LIB_DIST_DIR)/$(TARGET) $(LIB_DIST_DIR)/*.out
{'fraction_non_alphanumeric': 0.18774900398406374, 'fraction_numerical': 0.0, 'mean_word_length': 5.337539432176656, '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': '1623051', 'n_tokens_mistral': 880, 'n_tokens_neox': 810, 'n_words': 149}