eg0rmaffin

Makefile Libft

Sep 17th, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. SRCS = ft_memset.c \
  2. ft_bzero.c \
  3. ft_memcpy.c \
  4. ft_memccpy.c \
  5. ft_memmove.c \
  6. ft_memchr.c \
  7. ft_memcmp.c \
  8. ft_strlen.c \
  9. ft_strdup.c \
  10. ft_strcpy.c \
  11. ft_strncpy.c \
  12. ft_strcat.c \
  13. ft_strncat.c \
  14. ft_strlcat.c \
  15. ft_strchr.c \
  16. ft_strrchr.c \
  17. ft_strstr.c \
  18. ft_strnstr.c \
  19. ft_strcmp.c \
  20. ft_strncmp.c \
  21. ft_atoi.c \
  22. ft_isalpha.c \
  23. ft_isdigit.c \
  24. ft_isalnum.c \
  25. ft_isascii.c \
  26. ft_isprint.c \
  27. ft_toupper.c \
  28. ft_tolower.c \
  29. ft_memalloc.c \
  30. ft_memdel.c \
  31. ft_strnew.c \
  32. ft_strdel.c \
  33. ft_strclr.c \
  34. ft_striter.c \
  35. ft_striteri.c \
  36. ft_strmap.c \
  37. ft_strmapi.c \
  38. ft_strequ.c \
  39. ft_strnequ.c \
  40. ft_strsub.c \
  41. ft_strjoin.c \
  42. ft_strtrim.c \
  43. ft_strsplit.c \
  44. ft_itoa.c \
  45. ft_putchar.c \
  46. ft_putnbr.c \
  47. ft_putstr.c \
  48. ft_putendl.c \
  49. ft_putchar_fd.c \
  50. ft_putnbr_fd.c \
  51. ft_putstr_fd.c \
  52. ft_putendl_fd.c \
  53. ft_lstnew.c \
  54. ft_lstdelone.c \
  55. ft_lstdel.c \
  56. ft_lstadd.c \
  57. ft_lstiter.c \
  58. ft_lstmap.c \
  59. ft_strrev.c \
  60. ft_isupal.c \
  61. ft_islowal.c \
  62. ft_sqrt.c \
  63. ft_square.c
  64. OBJ = $(SRCS:%.c=%.o)
  65. NAME = libft.a
  66. HEADER = libft.h
  67.  
  68. all: $(NAME)
  69.  
  70. $(NAME): $(OBJ) $(HEADER)
  71. ar rc $(NAME) $(OBJ)
  72.  
  73. $(OBJ): %.o:%.c
  74. gcc -Wall -Wextra -Werror -c $<
  75.  
  76. clean:
  77. rm -rf $(OBJ)
  78.  
  79. fclean: clean
  80. rm -rf $(NAME)
  81.  
  82. re: fclean all
Advertisement
Add Comment
Please, Sign In to add comment