-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
98 lines (88 loc) · 2.17 KB
/
Makefile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# **************************************************************************** #
# LE - / #
# / #
# Makefile .:: .:/ . .:: #
# +:+:+ +: +: +:+:+ #
# By: thperchi <marvin@le-101.fr> +:+ +: +: +:+ #
# #+# #+ #+ #+# #
# Created: 2018/10/04 13:45:02 by thperchi #+# ## ## #+# #
# Updated: 2018/10/23 13:24:14 by thperchi ### #+. /#+ ###.fr #
# / #
# / #
# **************************************************************************** #
NAME= libft.a
HEADER= libft.h
OBJ= ft_isascii.o\
ft_memcpy.o \
ft_strchr.o\
ft_strncat.o\
ft_tolower.o\
ft_isdigit.o\
ft_memmove.o\
ft_strcmp.o\
ft_strncmp.o\
ft_toupper.o\
ft_atoi.o\
ft_isprint.o\
ft_memset.o\
ft_strcpy.o\
ft_strncpy.o\
ft_bzero.o\
ft_memccpy.o\
ft_strdup.o\
ft_strnstr.o\
ft_isalnum.o\
ft_memchr.o\
ft_strlcat.o\
ft_strrchr.o\
ft_isalpha.o\
ft_memcmp.o\
ft_strcat.o\
ft_strlen.o\
ft_strstr.o\
ft_memalloc.o\
ft_memdel.o\
ft_strnew.o\
ft_strdel.o\
ft_strclr.o\
ft_striter.o\
ft_striteri.o\
ft_strmap.o\
ft_strmapi.o\
ft_strequ.o\
ft_strnequ.o\
ft_strsub.o\
ft_strjoin.o\
ft_strtrim.o\
ft_strsplit.o\
ft_itoa.o\
ft_putchar.o\
ft_putstr.o\
ft_putendl.o\
ft_putnbr.o\
ft_putchar_fd.o\
ft_putstr_fd.o\
ft_putendl_fd.o\
ft_putnbr_fd.o\
ft_lstnew.o\
ft_lstdelone.o\
ft_lstdel.o\
ft_lstadd.o\
ft_lstiter.o\
ft_lstmap.o\
ft_swap.o\
ft_strcapitalize.o\
ft_iterative_factorial.o\
ft_iterative_power.o\
ft_sqrt.o\
FLAGS = -Wall -Werror -Wextra
all: $(NAME)
$(NAME): $(OBJ)
%.o: %.c
gcc -I$(HEADER) $(FLAGS) -c $^ -o $@
ar rs $(NAME) $@
clean:
/bin/rm -f $(OBJ)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all