Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (49 loc) · 2.56 KB
/
Copy pathMakefile
File metadata and controls
55 lines (49 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: guiricha <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/11/26 16:55:06 by guiricha #+# #+# #
# Updated: 2017/11/19 12:19:12 by guiricha ### ########.fr #
# #
# **************************************************************************** #
SRC_NAME = ft_isalpha.c ft_memccpy.c ft_putchar.c ft_strcpy.c ft_strncat.c \
ft_toupper.c ft_isascii.c ft_memchr.c ft_putnbr.c ft_strdel.c \
ft_strncpy.c ft_isdigit.c ft_memcpy.c ft_putstr.c ft_strdup.c \
ft_strnew.c ft_atoi.c ft_isprint.c ft_memdel.c ft_strcat.c \
ft_strlcat.c ft_strrchr.c ft_bzero.c ft_memmove.c \
ft_strchr.c ft_strstr.c ft_isalnum.c ft_memalloc.c \
ft_memset.c ft_strclr.c ft_strlen.c ft_tolower.c ft_memcmp.c \
ft_strnstr.c ft_strcmp.c ft_strncmp.c ft_strsplit.c \
ft_striter.c ft_striteri.c ft_strmap.c ft_strmapi.c \
ft_strequ.c ft_strnequ.c ft_strsub.c ft_strjoin.c ft_strtrim.c \
ft_itoa.c ft_putendl.c ft_putchar_fd.c ft_putstr_fd.c \
ft_putendl_fd.c ft_putnbr_fd.c ft_lstnew.c ft_lstdelone.c \
ft_lstdel.c ft_lstadd.c ft_lstiter.c ft_lstmap.c ft_strexpand.c \
ft_max.c ft_split.c ft_isspace.c ft_lastword.c ft_countw.c \
ft_lstlen.c ft_lst_pushback.c ft_sort_list.c ft_range.c \
ft_tab_mult.c ft_list_foreach.c ft_atoll.c ft_wait.c ft_abs.c \
ft_sort_tab.c ft_nbrlen.c ft_strdup_lemin.c ft_strjoin_lemin.c \
ft_strndup.c ft_strgrab.c ft_atoi_addlen.c ft_findfirstlastdelim.c \
ft_strntilnl.c ft_strcmpdelim.c ft_strtonbr.c ft_debug.c ft_stat.c \
ft_substr.c ft_strtrijoin.c ft_strrevncmp.c ft_sort_str_array.c \
ft_sort_str_array_verbose.c add_dir_to_str.c \
ft_check_end_of_string.c
NAME = libft.a
CC = gcc
CFLAGS = -Werror -Wextra -Wall
OBJ_NAME = $(SRC_NAME:.c=.o)
all: $(NAME)
$(NAME): $(OBJ_NAME)
@ar cr $(NAME) $(OBJ_NAME)
@ranlib $(NAME)
$(OBJ_NAME):
@$(CC) $(CFLAGS) -c $(SRC_NAME)
clean:
@rm -f *.o
fclean: clean
@rm -f $(NAME)
re: fclean all
.PHONY: re fclean clean all