Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # **************************************************************************** #
  2. # #
  3. # ::: :::::::: #
  4. # Makefile :+: :+: :+: #
  5. # +:+ +:+ +:+ #
  6. # By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ #
  7. # +#+#+#+#+#+ +#+ #
  8. # Created: 2014/11/05 11:09:24 by mazimi #+# #+# #
  9. # Updated: 2015/09/25 13:48:00 by mazimi ### ########.fr #
  10. # #
  11. # **************************************************************************** #
  12. NAME = libft.a
  13. SRC = ft_memset.c \
  14. ft_bzero.c \
  15. ft_memcpy.c \
  16. ft_memccpy.c \
  17. ft_memmove.c \
  18. ft_memchr.c \
  19. ft_memcmp.c \
  20. ft_strlen.c \
  21. ft_strdup.c \
  22. ft_strcpy.c \
  23. ft_strncpy.c \
  24. ft_strcat.c \
  25. ft_strncat.c \
  26. ft_strlcat.c \
  27. ft_strchr.c \
  28. ft_strrchr.c \
  29. ft_strstr.c \
  30. ft_strnstr.c \
  31. ft_strcmp.c \
  32. ft_strncmp.c \
  33. ft_atoi.c \
  34. ft_isalpha.c \
  35. ft_isdigit.c \
  36. ft_isalnum.c \
  37. ft_isascii.c \
  38. ft_isprint.c \
  39. ft_toupper.c \
  40. ft_tolower.c \
  41. ft_memalloc.c \
  42. ft_memdel.c \
  43. ft_strnew.c \
  44. ft_strdel.c \
  45. ft_strclr.c \
  46. ft_striter.c \
  47. ft_striteri.c \
  48. ft_strmap.c \
  49. ft_strmapi.c \
  50. ft_strequ.c \
  51. ft_strnequ.c \
  52. ft_strsub.c \
  53. ft_strjoin.c \
  54. ft_strjoinf.c \
  55. ft_strsplit.c \
  56. ft_tabsize.c \
  57. ft_itoa.c \
  58. ft_strtrim.c \
  59. ft_putchar.c \
  60. ft_putstr.c \
  61. ft_putendl.c \
  62. ft_puttab.c \
  63. ft_putnbr.c \
  64. ft_putnbrn.c \
  65. ft_putchar_fd.c \
  66. ft_putstr_fd.c \
  67. ft_putendl_fd.c \
  68. ft_putnbr_fd.c \
  69. ft_lstnew.c \
  70. ft_lstdelone.c \
  71. ft_lstdel.c \
  72. ft_lstadd.c \
  73. ft_lstiter.c \
  74. ft_lstmap.c \
  75. get_next_line.c
  76. OBJ = $(SRC:.c=.o)
  77. all: $(NAME)
  78. $(NAME):
  79. @gcc -Wall -Werror -Wextra -c $(SRC)
  80. @ar rc $(NAME) $(OBJ)
  81. @rm -f $(OBJ)
  82. @echo "libft make."
  83. clean:
  84. @rm -f $(OBJ)
  85. @echo "libft cleaned."
  86. fclean: clean
  87. @rm -f $(NAME)
  88. @echo "libft fcleaned"
  89. re: fclean all