<commit_before>
-include ../../Makefile.defs

GCC		=	gcc
OUTPUT		=	bin/fcdb.authmod
CFLAGS		+=	-I../../core/ -I../../libs/properties/ -I../../libs/application/ -I../../libs/ -fPIC -I../../libs-ext/libwebsockets/build/include/ -I/usr/include/libxml2/ 
LFLAGS		=	-shared -fPIC -Wl,--no-as-needed -lz -lpthread -lrt -lcrypt -lssl $(shell mysql_config --libs)
DFLAGS		=	-M $(CFLAGS)  
FPATH		=	$(shell pwd)

ifeq ($(DEBUG),1)
CFLAGS  +=      -D__DEBUG
endif

ifeq ($(PROFILE),1)
CFLAGS  +=	-pg -DPROFILE=1
endif

ifeq ($(WEBSOCKETS),1)
CFLAGS	+=	-DENABLE_WEBSOCKETS
endif

ifeq ($(USE_SELECT),1)
CFLAGS  +=      -DUSE_SELECT
endif

ifeq ($(NO_VALGRIND),1)
CFLAGS  +=      -DNO_VALGRIND_STUFF
endif

ifeq ($(CYGWIN_BUILD),1)
CFLAGS  +=      -DCYGWIN_BUILD
endif

C_FILES := $(wildcard fcdb.c)
OBJ_FILES := $(addprefix obj/,$(notdir $(C_FILES:.c=.o)))

ALL:	$(OBJ_FILES) $(OUTPUT)


$(OUTPUT): $(OBJ_FILES)
	@echo "\033[34mLinking ...\033[0m"
	$(GCC) $(CFLAGS)-o $(OUTPUT) $(LFLAGS) $(OBJ_FILES) ../../core/obj/library.o ../../core/obj/user_session.o ../../core/obj/sha256.o ../../core/obj/list.o ../../core/obj/string.o ../../core/obj/hashmap.o ../../core/obj/uri.o ../../core/obj/path.o ../../core/obj/user_application.o ../../core/obj/user.o -lcrypto

obj/fcdb.o: fcdb.c
	@echo "\033[34mCompile ...\033[0m"
	gcc $(CFLAGS) -c -o $@ $<

obj/%.o: %.c *.h %.d
	@echo "\033[34mCompile ...\033[0m"
	gcc $(CFLAGS) -c -o $@ $<

#build system

compile:	$(OBJ_FILES) $(OUTPUT)

release:	$(OBJ_FILES) $(OUTPUT)

clean:
	@echo "\033[34mCleaning\033[0m"
	@rm -f $(C_FILES:%.c=%.d)
	@rm -rf obj/* $(OUTPUT) *.d*
<commit_msg>FIX - fcdb compilation script<commit_after>
-include ../../Makefile.defs

GCC		=	gcc
OUTPUT		=	bin/fcdb.authmod
CFLAGS		+=	-I../../core/ -I../../libs/properties/ -I../../libs/application/ -I../../libs/ -fPIC -I../../libs-ext/libwebsockets/build/include/ -I/usr/include/libxml2/ 
LFLAGS		=	-shared -fPIC -Wl,--no-as-needed -lz -lpthread -lrt -lcrypt -lssl $(shell mysql_config --libs)
DFLAGS		=	-M $(CFLAGS)  
FPATH		=	$(shell pwd)

ifeq ($(DEBUG),1)
CFLAGS  +=      -D__DEBUG
endif

ifeq ($(PROFILE),1)
CFLAGS  +=	-pg -DPROFILE=1
endif

ifeq ($(WEBSOCKETS),1)
CFLAGS	+=	-DENABLE_WEBSOCKETS
endif

ifeq ($(USE_SELECT),1)
CFLAGS  +=      -DUSE_SELECT
endif

ifeq ($(NO_VALGRIND),1)
CFLAGS  +=      -DNO_VALGRIND_STUFF
endif

ifeq ($(CYGWIN_BUILD),1)
CFLAGS  +=      -DCYGWIN_BUILD
endif

C_FILES := $(wildcard fcdb.c)
OBJ_FILES := $(addprefix obj/,$(notdir $(C_FILES:.c=.o)))

ALL:	$(OBJ_FILES) $(OUTPUT)


$(OUTPUT): $(OBJ_FILES)
	@echo "\033[34mLinking ...\033[0m"
	$(GCC) $(CFLAGS) -o $(OUTPUT) $(LFLAGS) $(OBJ_FILES) ../../core/obj/library.o ../../core/obj/user_session.o ../../core/obj/sha256.o ../../core/obj/list.o ../../core/obj/string.o ../../core/obj/hashmap.o ../../core/obj/uri.o ../../core/obj/path.o ../../core/obj/user_application.o ../../core/obj/user.o -lcrypto

obj/fcdb.o: fcdb.c
	@echo "\033[34mCompile ...\033[0m"
	gcc $(CFLAGS) -c -o $@ $<

obj/%.o: %.c *.h %.d
	@echo "\033[34mCompile ...\033[0m"
	gcc $(CFLAGS) -c -o $@ $<

#build system

compile:	$(OBJ_FILES) $(OUTPUT)

release:	$(OBJ_FILES) $(OUTPUT)

clean:
	@echo "\033[34mCleaning\033[0m"
	@rm -f $(C_FILES:%.c=%.d)
	@rm -rf obj/* $(OUTPUT) *.d*

{'fraction_non_alphanumeric': 0.24976787372330547, 'fraction_numerical': 0.02909316001238007, 'mean_word_length': 2.7537746806039487, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5592999', 'n_tokens_mistral': 1550, 'n_tokens_neox': 1391, 'n_words': 272}