aboutsummaryrefslogtreecommitdiffstats
path: root/libft/Makefile
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-17 19:34:53 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-17 19:34:53 +0100
commita287db1124beda38507739f892c085bd3654ebd7 (patch)
treec439a25efe0309de08087d439a597f84583b257f /libft/Makefile
parentRemoved libft (diff)
download42-cub3d-a287db1124beda38507739f892c085bd3654ebd7.tar.gz
42-cub3d-a287db1124beda38507739f892c085bd3654ebd7.tar.bz2
42-cub3d-a287db1124beda38507739f892c085bd3654ebd7.tar.xz
42-cub3d-a287db1124beda38507739f892c085bd3654ebd7.tar.zst
42-cub3d-a287db1124beda38507739f892c085bd3654ebd7.zip
Added libft
Diffstat (limited to 'libft/Makefile')
-rw-r--r--libft/Makefile175
1 files changed, 175 insertions, 0 deletions
diff --git a/libft/Makefile b/libft/Makefile
new file mode 100644
index 0000000..051fcd7
--- /dev/null
+++ b/libft/Makefile
@@ -0,0 +1,175 @@
+# **************************************************************************** #
+# LE - / #
+# / #
+# Makefile .:: .:/ . .:: #
+# +:+:+ +: +: +:+:+ #
+# By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ #
+# #+# #+ #+ #+# #
+# Created: 2019/12/11 13:14:43 by rbousset #+# ## ## #+# #
+# Updated: 2019/12/11 18:34:05 by rbousset ### #+. /#+ ###.fr #
+# / #
+# / #
+# **************************************************************************** #
+
+default: all
+#==============================================================================#
+#--------------------------------- Shell --------------------------------------#
+#==============================================================================#
+SHELL := /bin/sh
+#==============================================================================#
+#------------------------------ Directories -----------------------------------#
+#==============================================================================#
+INCS_DIR = inc/
+SRCS_DIR = src/
+OBJS_DIR = obj/
+#==============================================================================#
+#--------------------------------- Files --------------------------------------#
+#==============================================================================#
+INCS = libft.h
+#------------------------------------------------------------------------------#
+SRCS_NAME = ft_memset.c
+SRCS_NAME += ft_bzero.c
+SRCS_NAME += ft_memcpy.c
+SRCS_NAME += ft_memccpy.c
+SRCS_NAME += ft_memmove.c
+SRCS_NAME += ft_memchr.c
+SRCS_NAME += ft_memlchr.c
+SRCS_NAME += ft_memcmp.c
+SRCS_NAME += ft_strlen.c
+SRCS_NAME += ft_isalpha.c
+SRCS_NAME += ft_isdigit.c
+SRCS_NAME += ft_isalnum.c
+SRCS_NAME += ft_isascii.c
+SRCS_NAME += ft_isprint.c
+SRCS_NAME += ft_ischarset.c
+SRCS_NAME += ft_tolower.c
+SRCS_NAME += ft_toupper.c
+SRCS_NAME += ft_strchr.c
+SRCS_NAME += ft_strrchr.c
+SRCS_NAME += ft_strlchr.c
+SRCS_NAME += ft_strncmp.c
+SRCS_NAME += ft_strlcpy.c
+SRCS_NAME += ft_strlcat.c
+SRCS_NAME += ft_strnstr.c
+SRCS_NAME += ft_atoi.c
+SRCS_NAME += ft_calloc.c
+SRCS_NAME += ft_nrealloc.c
+SRCS_NAME += ft_strdup.c
+SRCS_NAME += ft_substr.c
+SRCS_NAME += ft_strjoin.c
+SRCS_NAME += ft_strtrim.c
+SRCS_NAME += ft_split.c
+SRCS_NAME += ft_itoa.c
+SRCS_NAME += ft_itoa_base.c
+SRCS_NAME += ft_uitoa.c
+SRCS_NAME += ft_uitoa_base.c
+SRCS_NAME += ft_strmapi.c
+SRCS_NAME += ft_putchar_fd.c
+SRCS_NAME += ft_putstr_fd.c
+SRCS_NAME += ft_putendl_fd.c
+SRCS_NAME += ft_putnbr_fd.c
+SRCS_NAME += ft_lstnew.c
+SRCS_NAME += ft_lstadd_front.c
+SRCS_NAME += ft_lstsize.c
+SRCS_NAME += ft_lstlast.c
+SRCS_NAME += ft_lstadd_back.c
+SRCS_NAME += ft_lstdelone.c
+SRCS_NAME += ft_lstclear.c
+SRCS_NAME += ft_lstiter.c
+SRCS_NAME += ft_lstmap.c
+SRCS_NAME += ft_putchar.c
+SRCS_NAME += ft_putnchar.c
+SRCS_NAME += ft_putstr.c
+SRCS_NAME += ft_putendl.c
+SRCS_NAME += ft_putnbr.c
+SRCS_NAME += ft_putnbr_base.c
+SRCS_NAME += ft_strnlen.c
+SRCS_NAME += ft_strcat.c
+SRCS_NAME += ft_strcmp.c
+SRCS_NAME += ft_isspace.c
+SRCS_NAME += ft_sqrt.c
+SRCS_NAME += ft_intlen.c
+SRCS_NAME += ft_intlen_base.c
+SRCS_NAME += ft_uintlen.c
+SRCS_NAME += ft_uintlen_base.c
+SRCS_NAME += ft_nstr.c
+SRCS_NAME += ft_memdel.c
+SRCS_NAME += ft_kernel_panic.c
+SRCS_NAME += get_next_line.c
+SRCS_NAME += ft_printf.c
+SRCS_NAME += ft_dprintf.c
+SRCS_NAME += ft_sprintf.c
+SRCS_NAME += ft_printf_init_struct.c
+SRCS_NAME += ft_printf_get_flags.c
+SRCS_NAME += ft_printf_use_flags.c
+SRCS_NAME += ft_printf_get_width_nstr.c
+SRCS_NAME += ft_printf_treat_flags.c
+SRCS_NAME += ft_printf_parts.c
+SRCS_NAME += ft_printf_put_width.c
+SRCS_NAME += ft_printf_put_precision.c
+SRCS_NAME += ft_printf_put_char.c
+SRCS_NAME += ft_printf_put_str.c
+SRCS_NAME += ft_printf_put_ptr.c
+SRCS_NAME += ft_printf_put_int.c
+SRCS_NAME += ft_printf_put_hex.c
+SRCS_NAME += ft_printf_put_none.c
+SRCS_NAME += ft_printf_get_s_putlen.c
+SRCS_NAME += ft_printf_process.c
+SRCS_NAME += ft_printf_cat_output.c
+SRCS_NAME += ft_printf_flag_to_atoi.c
+#------------------------------------------------------------------------------#
+SRCS = $(addprefix ${SRCS_DIR},${SRCS_NAME})
+#------------------------------------------------------------------------------#
+OBJS = $(patsubst ${SRCS_DIR}%.c,${OBJS_DIR}%.o,${SRCS})
+#==============================================================================#
+#-------------------------------- Compiler ------------------------------------#
+#==============================================================================#
+CC = clang
+CFLAGS = -std=c89
+CFLAGS += -Wall
+CFLAGS += -Wextra
+CFLAGS += -Werror
+CFLAGS += -pedantic
+ifdef ASAN
+ CFLAGS += ${DEBUG}
+ CFLAGS += ${FSANITIZE}
+endif
+#------------------------------------------------------------------------------#
+DEBUG = -glldb
+FSANITIZE = -fsanitize=address
+#------------------------------------------------------------------------------#
+NAME = libft.a
+#==============================================================================#
+#-------------------------------- Library -------------------------------------#
+#==============================================================================#
+AR = ar rcs
+#==============================================================================#
+#--------------------------------- UNIX ---------------------------------------#
+#==============================================================================#
+MKDIR = mkdir -p
+RM = rm -rf
+#==============================================================================#
+#--------------------------------- Rules --------------------------------------#
+#==============================================================================#
+${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS_DIR}${INCS}
+ @${MKDIR} ${OBJS_DIR}
+ ${CC} -c ${CFLAGS} -I${INCS_DIR} -o $@ $<
+#------------------------------------------------------------------------------#
+${NAME}: ${OBJS}
+ ${AR} ${NAME} ${OBJS}
+#------------------------------------------------------------------------------#
+all: ${NAME}
+#------------------------------------------------------------------------------#
+clean:
+ ${RM} ${OBJS_DIR}
+#------------------------------------------------------------------------------#
+fclean: clean
+ ${RM} ${NAME}
+#------------------------------------------------------------------------------#
+re: fclean all
+#------------------------------------------------------------------------------#
+run: ${OBJS}
+ ${CC} ${CFLAGS} -Iinc/ -o a.out ${OBJS} ${SRCS_DIR}main.c
+#------------------------------------------------------------------------------#
+.PHONY: all clean clean fclean re run default
+#==================================== EOF =====================================#