<commit_before># **************************************************************************** #
#                                                                              #
#                                                         :::      ::::::::    #
#    Makefile                                           :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: mfilipch <<EMAIL>>                    +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2016/09/22 09:34:02 by mfilipch          #+#    #+#              #
#    Updated: 2016/10/09 23:56:07 by mfilipch         ###   ########.fr        #
#                                                                              #
# **************************************************************************** #

NAME		=	libftprintf.a

FUNCS		+=	ft_printf.c\
				ft_putulnbr.c\
				ft_putlldbl.c\
				ft_numlen.c\
				ft_ultoa_base.c\
				ft_wcharstr.c\
				ft_prtf_str.c\
				ft_prtf_xop.c\
				ft_prtf_uid.c\
				ft_putstr.c\
				ft_strlen.c\
				ft_putchar.c\
				ft_atoi.c\
				ft_strncmp.c\
				ft_isdigit.c

#LIB_FUNCS	=	ft_isalpha.c\
				ft_isdigit.c\
				ft_isalnum.c\
				ft_isascii.c\
				ft_isprint.c
#LIB_FUNCS	+=	ft_toupper.c\
				ft_tolower.c\
				ft_itoa.c\
				ft_atoi.c\
				ft_bzero.c
#LIB_FUNCS	+=	ft_lstnew.c\
				ft_lstdelone.c\
				ft_lstdel.c\
				ft_lstadd.c\
				ft_lstiter.c\
				ft_lstmap.c
#LIB_FUNCS	+=	ft_memalloc.c\
				ft_memchr.c\
				ft_memmove.c\
				ft_memcpy.c\
				ft_memccpy.c\
				ft_memcmp.c\
				ft_memdel.c\
				ft_memset.c
#LIB_FUNCS	+=	ft_putchar.c\
				ft_putstr.c\
				ft_putendl.c\
				ft_putnbr.c\
				ft_putchar_fd.c\
				ft_putstr_fd.c\
				ft_putendl_fd.c\
				ft_putnbr_fd.c
#LIB_FUNCS	+=	ft_strcpy.c\
				ft_strncpy.c\
				ft_strcmp.c\
				ft_strequ.c\
				ft_strnequ.c\
				ft_strncmp.c\
				ft_strlen.c\
				ft_strstr.c\
				ft_strchr.c\
				ft_strrchr.c\
				ft_strnstr.c\
				ft_strcat.c\
				ft_strncat.c\
				ft_strlcat.c\
				ft_strnew.c\
				ft_strdup.c\
				ft_strdel.c\
				ft_strclr.c\
				ft_striter.c\
				ft_striteri.c\
				ft_strmap.c\
				ft_strmapi.c\
				ft_strjoin.c\
				ft_strsub.c\
				ft_strsplit.c\
				ft_strtrim.c

#LIB_FUNCS	+= 	ft_atof.c\
				ft_strndup.c\
				ft_isspace.c\
				ft_power.c\
				ft_strnequ_ci.c\
				ft_bit_rev_print.c\
				ft_memprint.c\
				ft_mapmake.c\
				ft_mapfree.c\
				ft_strlcpy.c\
				ft_strnchr.c\
				ft_memrealloc.c\
				ft_lstremoveif.c\
				get_next_line.c\
				ft_lstclr.c\
				ft_itoa_base.c\


#LIBFT		=	./libft/libft.a
#LIBINC		=	-I./libft
#LIBLINK		=	-L./libft -lft

CC			=	gcc
CFLAGS		=	-Wall -Wextra -Werror
OBJS		=	$(addprefix $(OBJS_DIR), $(FUNCS:.c=.o))
#OBJS 		+=	$(addprefix $(LIB_DIR), $(LIB_FUNCS:.c=.o))

#LIB_DIR		=	./libft/build/
INC_DIR		=	./includes/
OBJS_DIR	=	./build/

.PHONY: all clean fclean re

all: $(NAME)

build:
	@mkdir -p $(OBJS_DIR)

$(OBJS_DIR)%.o: %.c | build
	@$(CC) $(CFLAGS) $(LIBINC) -I $(INC_DIR) -c $< -o $@

#	@$(CC) $(CFLAGS) $(LIBINC) -I $(INC_DIR) -c $< -o $@

#$(LIBFT):
#	@make -C ./libft

$(NAME): $(OBJS) $(OBJS_DIR)
	@ar rcs $@ $(OBJS)

clean:
	@/bin/rm -rf $(OBJS_DIR)
#	@make -C ./libft clean
	@/bin/rm -f *.out
	@/bin/rm -f ._*
	@/bin/rm -f .DS*

fclean: clean
	@/bin/rm -f $(NAME)
#	@make -C ./libft fclean<commit_msg>makefile changes<commit_after># **************************************************************************** #
#                                                                              #
#                                                         :::      ::::::::    #
#    Makefile                                           :+:      :+:    :+:    #
#                                                     +:+ +:+         +:+      #
#    By: mfilipch <<EMAIL>>                    +#+  +:+       +#+         #
#                                                 +#+#+#+#+#+   +#+            #
#    Created: 2016/09/22 09:34:02 by mfilipch          #+#    #+#              #
#    Updated: 2016/10/09 23:56:07 by mfilipch         ###   ########.fr        #
#                                                                              #
# **************************************************************************** #

NAME		=	libftprintf.a

FUNCS		+=	ft_printf.c\
				ft_putulnbr.c\
				ft_putlldbl.c\
				ft_numlen.c\
				ft_ultoa_base.c\
				ft_wcharstr.c\
				ft_prtf_str.c\
				ft_prtf_xop.c\
				ft_prtf_uid.c\
				ft_putstr.c\
				ft_strlen.c\
				ft_putchar.c\
				ft_atoi.c\
				ft_strncmp.c\
				ft_isdigit.c

CC			=	gcc
CFLAGS		=	-Wall -Wextra -Werror
OBJS		=	$(addprefix $(OBJS_DIR), $(FUNCS:.c=.o))

INC_DIR		=	./includes/
OBJS_DIR	=	./build/

.PHONY: all clean fclean re

all: $(NAME)

build:
	@mkdir -p $(OBJS_DIR)

$(OBJS_DIR)%.o: %.c
	@$(CC) $(CFLAGS) -I $(INC_DIR) -c $< -o $@

# $(OBJS_DIR)%.o: %.c | build
# 	@$(CC) $(CFLAGS) -I $(INC_DIR) -c $< -o $@

$(NAME): build $(OBJS)
	@ar rcs $@ $(OBJS)

clean:
	@/bin/rm -rf $(OBJS_DIR)
	@/bin/rm -f *.out
	@/bin/rm -f ._*
	@/bin/rm -f .DS*

fclean: clean
	@/bin/rm -f $(NAME)
{'fraction_non_alphanumeric': 0.21365681862649188, 'fraction_numerical': 0.010956759929563686, 'mean_word_length': 1.3633841886269071, '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': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6084335', 'n_tokens_mistral': 2482, 'n_tokens_neox': 2100, 'n_words': 304}