<commit_before>.PHONY: all clean dist obj lib
CC:=g++

WARNINGS:=-Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align \
            -Wwrite-strings -Wmissing-declarations -Wuninitialized \
            -Wredundant-decls -Winline -Wno-long-long -Wconversion        

PROJECT_DIRS := headers src
PROJECT_SRC_C := $(shell find $(PROJECT_DIRS) -type f -name \*.c)
PROJECT_SRC_CPP := $(shell find $(PROJECT_DIRS) -type f -name \*.cpp)
PROJECT_HEADERS_C := $(shell find $(PROJECT_DIRS) -type f -name \*.h)
PROJECT_HEADERS_CPP := $(shell find $(PROJECT_DIRS) -type f -name \*.hpp)
PROJECT_OBJ := $(patsubst src/%, obj/%, $(patsubst %.c,%.o,$(PROJECT_SRC_C)))
PROJECT_OBJ := $(PROJECT_OBJ) $(patsubst src/%, obj/%, $(patsubst %.cpp,%.o,$(PROJECT_SRC_CPP)))
PROJECT_DEPS := $(patsubst %.o,%.d,$(PROJECT_OBJ)) 

PROJECT_LIB_DIR:=../facerecogntion-facecleaner/lib/
PROJECT_INCLUDE_DIR:=../facerecogntion-facecleaner/headers/
FACECLEANER_STATIC:=$(PROJECT_LIB_DIR)libfacerecogntion_cleaner.a
APP:=bin/face-trainer
OPENCV_LIBS:=$(shell pkg-config opencv --libs)
LINKED_LIBRARIES:= -Wl,--start-group $(OPENCV_LIBS) -Wl,--end-group -lfreeimage

$(shell mkdir -p obj)
$(shell mkdir -p bin)

CFLAGS:= -c -O2 -Iheaders -I$(PROJECT_INCLUDE_DIR) -fpic $(WARNINGS)
LDFLAGS:= -O2 -L$(PROJECT_LIB_DIR) $(LINKED_LIBRARIES)

all: $(APP)

debug:
	@echo Project dirs:
	@echo $(PROJECT_DIRS)
	@echo Project C files:
	@echo $(PROJECT_SRC_C)<commit_msg>added debug symbols<commit_after>.PHONY: all clean dist obj lib
CC:=g++

WARNINGS:=-Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align \
            -Wwrite-strings -Wmissing-declarations -Wuninitialized \
            -Wredundant-decls -Winline -Wno-long-long -Wconversion        

PROJECT_DIRS := headers src
PROJECT_SRC_C := $(shell find $(PROJECT_DIRS) -type f -name \*.c)
PROJECT_SRC_CPP := $(shell find $(PROJECT_DIRS) -type f -name \*.cpp)
PROJECT_HEADERS_C := $(shell find $(PROJECT_DIRS) -type f -name \*.h)
PROJECT_HEADERS_CPP := $(shell find $(PROJECT_DIRS) -type f -name \*.hpp)
PROJECT_OBJ := $(patsubst src/%, obj/%, $(patsubst %.c,%.o,$(PROJECT_SRC_C)))
PROJECT_OBJ := $(PROJECT_OBJ) $(patsubst src/%, obj/%, $(patsubst %.cpp,%.o,$(PROJECT_SRC_CPP)))
PROJECT_DEPS := $(patsubst %.o,%.d,$(PROJECT_OBJ)) 

PROJECT_LIB_DIR:=../facerecogntion-facecleaner/lib/
PROJECT_INCLUDE_DIR:=../facerecogntion-facecleaner/headers/
FACECLEANER_STATIC:=$(PROJECT_LIB_DIR)libfacerecogntion_cleaner.a
APP:=bin/face-trainer
OPENCV_LIBS:=$(shell pkg-config opencv --libs)
LINKED_LIBRARIES:= -Wl,--start-group $(OPENCV_LIBS) -Wl,--end-group -lfreeimage

$(shell mkdir -p obj)
$(shell mkdir -p bin)

CFLAGS:= -c -O2 -Iheaders -I$(PROJECT_INCLUDE_DIR) -fpic $(WARNINGS)
LDFLAGS:= -O2 -L$(PROJECT_LIB_DIR) $(LINKED_LIBRARIES) -ggdb

all: $(APP)

debug:
	@echo Project dirs:
	@echo $(PROJECT_DIRS)
	@echo Project C files:
	@echo $(PROJECT_SRC_C)
{'fraction_non_alphanumeric': 0.17292971468336812, 'fraction_numerical': 0.0013917884481558804, 'mean_word_length': 4.58252427184466, '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': '75962', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1136, 'n_words': 236}