<commit_before>#******************************************************************************#
#                                                                              #
#                                                         :::      ::::::::    #
#    Makefile                                           :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: aviala <<EMAIL>>              +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2013/11/20 18:47:54 by aviala            #+#    #+#              #
#    Updated: 2014/02/08 20:02:55 by aviala           ###   ########.fr        #
#                                                                              #
#******************************************************************************#

DEBUG =
INCDIR = includes
SRCDIR = srcs
OBJDIR = objs
CC = cc
LD = $(CC)

ifeq ($(DEBUG),yes)
	CC = clang
	CFLAGS += -ggdb3 -fstack-protector-all -Wshadow -Wunreachable-code \
		-Wstack-protector -pedantic-errors -O0 -W -Wundef -fno-common \
		-Wfatal-errors -Wstrict-prototypes -Wmissing-prototypes -pedantic \
		-Wwrite-strings -Wunknown-pragmas -Wdeclaration-after-statement\
		-Wold-style-definition -Wmissing-field-initializers -Wfloat-equal\
		-Wpointer-arith -Wnested-externs -Wstrict-overflow=5 -fno-common\
		-Wno-missing-field-initializers -Wswitch-default -Wswitch-enum \
		-Wbad-function-cast -Wredundant-decls -fno-omit-frame-pointer
else
	CC = gcc
	CFLAGS += -O3
endif

LDFLAGS =
SRC =	ft_strlen.c	ft_isalnum.c	ft_isalpha.c	ft_isascii.c \
	ft_isdigit.c 	ft_isprint.c	ft_strcpy.c 	ft_strncpy.c \
	ft_strdup.c 	ft_toupper.c	ft_tolower.c	ft_memcpy.c \
	ft_memccpy.c	ft_bzero.c		ft_memchr.c		ft_memmove.c \
	ft_memcmp.c		ft_strcmp.c		ft_atoi.c		ft_memset.c \
	ft_strchr.c		ft_strrchr.c	ft_strnstr.c	ft_strstr.c \
	ft_strcat.c		ft_strncat.c	ft_strlcat.c	ft_strnew.c \
	ft_strdel.c		ft_strclr.c		ft_strequ.c		ft_putendl.c \
	ft_putchar.c	ft_putchar_fd.c	ft_putnbr.c		ft_putendl_fd.c \
	ft_putnbr_fd.c	ft_putstr.c		ft_putstr_fd.c	ft_strnequ.c \
	ft_strncmp.c	ft_striter.c	ft_striteri.c	ft_strmap.c \
	ft_strmapi.c	ft_strsub.c		ft_strjoin.c	ft_memalloc.c \
	ft_memdel.c		ft_strsplit.c	ft_strtrim.c	ft_itoa.c \
	ft_strrev.c		ft_swapchar.c	ft_lstnew.c		ft_lstdelone.c \
	ft_lstadd.c		ft_lstdel.c		ft_lstiter.c	ft_isspace.c \
	ft_islower.c	ft_isupper.c	ft_lstlen.c		ft_lst_push_back.c \
	ft_strpos.c		ft_countc.c		ft_swapint.c	ft_open.c \
	get_next_line.c	ft_printf.c		ft_lst_push_front.c 

# Deprecating or moving math function?
#ft_ceil.c		ft_floor.c		ft_sqrt.c		ft_pow.c
#ft_cos.c		ft_sin.c		ft_abs.c		ft_factorial.c \
#ft_lstmap.c

OBJS = $(SRC:.c=.o)
NAME = libft.a
OBJS_PREF = $(addprefix $(OBJDIR)/, $(OBJS))

all: $(NAME)

$(NAME): $(OBJS_PREF)
	@echo "Linking $@."
	@ar rcs $@ $^

$(OBJDIR)/%.o: $(SRCDIR)/%.c
	@echo "Compiling $@ into $<"
	@$(CC) $(CFLAGS) -I$(INCDIR) -o $@ -c $<

clean:
	@echo "Removing $(OBJS_PREF)."
	@/bin/rm -rf $(OBJS_PREF)

fclean: clean
	@echo "Removing $(NAME)."
	@/bin/rm -f $(NAME)

re: fclean all

.PHONY: clean fclean re all
<commit_msg>Makefile<commit_after>#******************************************************************************#
#                                                                              #
#                                                         :::      ::::::::    #
#    Makefile                                           :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: aviala <<EMAIL>>              +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2013/11/20 18:47:54 by aviala            #+#    #+#              #
#    Updated: 2014/02/09 20:09:41 by aviala           ###   ########.fr        #
#                                                                              #
#******************************************************************************#

DEBUG =
INCDIR = includes
SRCDIR = srcs
OBJDIR = objs
CC = cc
LD = $(CC)

ifeq ($(DEBUG),yes)
	CC = clang
	CFLAGS += -ggdb3 -fstack-protector-all -Wshadow -Wunreachable-code \
		-Wstack-protector -pedantic-errors -O0 -W -Wundef -fno-common \
		-Wfatal-errors -Wstrict-prototypes -Wmissing-prototypes -pedantic \
		-Wwrite-strings -Wunknown-pragmas -Wdeclaration-after-statement\
		-Wold-style-definition -Wmissing-field-initializers -Wfloat-equal\
		-Wpointer-arith -Wnested-externs -Wstrict-overflow=5 -fno-common\
		-Wno-missing-field-initializers -Wswitch-default -Wswitch-enum \
		-Wbad-function-cast -Wredundant-decls -fno-omit-frame-pointer
else
	CC = gcc
	CFLAGS += -O3
endif

LDFLAGS =
SRC =	ft_strlen.c	ft_isalnum.c	ft_isalpha.c	ft_isascii.c \
	ft_isdigit.c 	ft_isprint.c	ft_strcpy.c 	ft_strncpy.c \
	ft_strdup.c 	ft_toupper.c	ft_tolower.c	ft_memcpy.c \
	ft_memccpy.c	ft_bzero.c		ft_memchr.c		ft_memmove.c \
	ft_memcmp.c		ft_strcmp.c		ft_atoi.c		ft_memset.c \
	ft_strchr.c		ft_strrchr.c	ft_strnstr.c	ft_strstr.c \
	ft_strcat.c		ft_strncat.c	ft_strlcat.c	ft_strnew.c \
	ft_strdel.c		ft_strclr.c		ft_strequ.c		ft_strnequ.c \
	ft_strncmp.c	ft_striter.c	ft_striteri.c	ft_strmap.c \
	ft_strmapi.c	ft_strsub.c		ft_strjoin.c	ft_memalloc.c \
	ft_memdel.c		ft_strsplit.c	ft_strtrim.c	ft_itoa.c \
	ft_strrev.c		ft_swapchar.c	ft_lstnew.c		ft_lstdelone.c \
	ft_lstadd.c		ft_lstdel.c		ft_lstiter.c	ft_isspace.c \
	ft_islower.c	ft_isupper.c	ft_lstlen.c		ft_lst_push_back.c \
	ft_strpos.c		ft_countc.c		ft_swapint.c \
	get_next_line.c	ft_printf.c		ft_lst_push_front.c \
	ft_putchar.c	ft_putchar_fd.c	ft_putnbr.c		ft_putendl_fd.c \
	ft_putnbr_fd.c	ft_putstr.c		ft_putstr_fd.c	ft_putendl.c \
	ft_open.c 
# Deprecating or moving math function?
#ft_ceil.c		ft_floor.c		ft_sqrt.c		ft_pow.c
#ft_cos.c		ft_sin.c		ft_abs.c		ft_factorial.c \
#ft_lstmap.c

OBJS = $(SRC:.c=.o)
NAME = libft.a
OBJS_PREF = $(addprefix $(OBJDIR)/, $(OBJS))

all: $(NAME)

$(NAME): $(OBJS_PREF)
	@echo "Linking $@."
	@ar rcs $@ $^

$(OBJDIR)/%.o: $(SRCDIR)/%.c
	@echo "Compiling $@ into $<"
	@$(CC) $(CFLAGS) -I$(INCDIR) -o $@ -c $<

build-io:
	@echo "Building IO module."
clean:
	@echo "Removing $(OBJS_PREF)."
	@/bin/rm -rf $(OBJS_PREF)

fclean: clean
	@echo "Removing $(NAME)."
	@/bin/rm -f $(NAME)

re: fclean all

.PHONY: clean fclean re all

{'fraction_non_alphanumeric': 0.18211713122455372, 'fraction_numerical': 0.010021922956467273, 'mean_word_length': 2.0284495021337126, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '688597', 'n_tokens_mistral': 2742, 'n_tokens_neox': 2633, 'n_words': 413}