Advertisement
Guest User

makefile libft

a guest
Mar 17th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.49 KB | None | 0 0
  1. # **************************************************************************** #
  2. #                                                                              #
  3. #                                                         :::      ::::::::    #
  4. #    Makefile                                           :+:      :+:    :+:    #
  5. #                                                     +:+ +:+         +:+      #
  6. #    By: mae <mae@student.42.fr>                    +#+  +:+       +#+         #
  7. #                                                 +#+#+#+#+#+   +#+            #
  8. #    Created: 2018/11/20 17:52:35 by mae               #+#    #+#              #
  9. #    Updated: 2019/03/17 01:21:46 by mae              ###   ########.fr        #
  10. #                                                                              #
  11. # **************************************************************************** #
  12.  
  13. NAME    =   libft.a
  14.  
  15. SRC     =   ft_abs.c \
  16.             ft_baselen.c \
  17.             ft_strdup.c \
  18.             ft_strcat.c \
  19.             ft_strcpy.c \
  20.             ft_strncat.c \
  21.             ft_strncpy.c \
  22.             ft_strcmp.c \
  23.             ft_strlen.c \
  24.             ft_strncmp.c \
  25.             ft_strlcat.c \
  26.             ft_atoi.c \
  27.             ft_atoll.c \
  28.             ft_floatmod.c \
  29.             ft_memmove.c \
  30.             ft_memcpy.c \
  31.             ft_memset.c \
  32.             ft_bzero.c \
  33.             ft_memchr.c \
  34.             ft_strchr.c\
  35.             ft_putendl.c \
  36.             ft_putchar.c \
  37.             ft_putstr.c \
  38.             ft_putchar_fd.c \
  39.             ft_putendl_fd.c \
  40.             ft_putnbr.c \
  41.             ft_putnbr_fd.c \
  42.             ft_putnbr_base.c \
  43.             ft_putunbr_base.c \
  44.             ft_putstr_fd.c \
  45.             ft_putnbr_long.c \
  46.             ft_putunbr_long.c \
  47.             ft_memalloc.c \
  48.             ft_strnew.c \
  49.             ft_memccpy.c \
  50.             ft_memcmp.c \
  51.             ft_strrchr.c \
  52.             ft_memdel.c \
  53.             ft_strdel.c \
  54.             ft_strclr.c \
  55.             ft_striter.c \
  56.             ft_striteri.c \
  57.             ft_strmap.c \
  58.             ft_strmapi.c \
  59.             ft_strequ.c \
  60.             ft_strnequ.c \
  61.             ft_strstr.c \
  62.             ft_strnstr.c \
  63.             ft_strsub.c \
  64.             ft_strjoin.c \
  65.             ft_isalpha.c \
  66.             ft_isdigit.c \
  67.             ft_isalnum.c \
  68.             ft_isascii.c \
  69.             ft_isprint.c \
  70.             ft_toupper.c \
  71.             ft_tolower.c \
  72.             ft_strtrim.c \
  73.             ft_strsplit.c \
  74.             ft_itoa.c   \
  75.             ft_itoa_base.c  \
  76.             ft_itoc.c   \
  77.             ft_lltoa.c  \
  78.             ft_lstnew.c \
  79.             ft_lstdelone.c \
  80.             ft_lstdel.c \
  81.             ft_lstadd.c \
  82.             ft_lstiter.c \
  83.             ft_lstmap.c \
  84.             ft_intlen.c \
  85.             ft_octlen.c \
  86.             ft_hexlen.c \
  87.             ft_uintlen.c \
  88.             rounder.c
  89.  
  90.  
  91.  
  92. FLAGS   =   -Wall -Werror -Wextra
  93.  
  94. all: $(NAME)
  95.  
  96. OBJ = $(SRC:.c=.o)
  97.  
  98. $(NAME):
  99.     @gcc -c $(FLAGS) $(SRC)
  100.     @ar -rcs $(NAME) $(OBJ)
  101.  
  102. clean :
  103.         @rm -rf $(OBJ)
  104.  
  105. fclean : clean
  106.         @/bin/rm -f $(NAME)
  107.  
  108. re : fclean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement