-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
107 lines (93 loc) · 2.55 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
99
100
101
102
103
104
105
106
107
NAME = libftprintf.a
CC = gcc
ifeq ($(DB),1)
CFLAGS = -g3 -Wall -Wextra -Werror
else
CFLAGS = -Wall -Wextra -Werror
endif
INC = includes
OBJS = ${SRCS:.c=.o}
OBJSB = ${SRCSB:.c=.o}
SRCS = srcs/ft_atoi.c \
srcs/ft_isalnum.c \
srcs/ft_isdigit.c \
srcs/ft_memchr.c \
srcs/ft_memmove.c \
srcs/ft_strdup.c \
srcs/ft_strlen.c \
srcs/ft_strrchr.c \
srcs/ft_bzero.c \
srcs/ft_isalpha.c \
srcs/ft_isprint.c \
srcs/ft_memcmp.c \
srcs/ft_memset.c \
srcs/ft_strlcat.c \
srcs/ft_strncmp.c \
srcs/ft_tolower.c \
srcs/ft_calloc.c \
srcs/ft_isascii.c \
srcs/ft_memccpy.c \
srcs/ft_memcpy.c \
srcs/ft_strchr.c \
srcs/ft_strlcpy.c \
srcs/ft_strnstr.c \
srcs/ft_toupper.c \
srcs/ft_substr.c \
srcs/ft_strjoin.c \
srcs/ft_strtrim.c \
srcs/ft_split.c \
srcs/ft_itoa.c \
srcs/ft_strmapi.c \
srcs/ft_putchar_fd.c \
srcs/ft_putstr_fd.c \
srcs/ft_putendl_fd.c \
srcs/ft_putnbr_fd.c \
srcs/ft_lstnew.c \
srcs/ft_lstadd_front.c \
srcs/ft_lstsize.c \
srcs/ft_lstlast.c \
srcs/ft_lstadd_back.c \
srcs/ft_lstdelone.c \
srcs/ft_lstclear.c \
srcs/ft_lstiter.c \
srcs/ft_lstmap.c \
srcs/ft_strstr.c \
srcs/ft_printf/ft_printf.c \
srcs/ft_printf/ft_printf_conv.c \
srcs/ft_printf/ft_printf_conv_int.c \
srcs/ft_printf/ft_printf_conv_int_utils.c \
srcs/ft_printf/ft_printf_conv_int_hh.c \
srcs/ft_printf/ft_printf_conv_int_hh_utils.c \
srcs/ft_printf/ft_printf_conv_int_ll.c \
srcs/ft_printf/ft_printf_conv_int_ll_utils.c \
srcs/ft_printf/ft_printf_conv_int_h.c \
srcs/ft_printf/ft_printf_conv_int_h_utils.c \
srcs/ft_printf/ft_printf_conv_int_l.c \
srcs/ft_printf/ft_printf_conv_int_l_utils.c \
srcs/ft_printf/ft_printf_conv_str.c \
srcs/ft_printf/ft_printf_conv_ptr.c \
srcs/ft_printf/ft_printf_conv_uns.c \
srcs/ft_printf/ft_printf_conv_uns_utils.c \
srcs/ft_printf/ft_printf_conv_uns_hh.c \
srcs/ft_printf/ft_printf_conv_uns_hh_utils.c \
srcs/ft_printf/ft_printf_conv_uns_ll.c \
srcs/ft_printf/ft_printf_conv_uns_ll_utils.c \
srcs/ft_printf/ft_printf_conv_uns_h.c \
srcs/ft_printf/ft_printf_conv_uns_h_utils.c \
srcs/ft_printf/ft_printf_conv_uns_l.c \
srcs/ft_printf/ft_printf_conv_uns_l_utils.c \
srcs/ft_printf/ft_printf_conv_n.c \
srcs/ft_printf/ft_printf_utils.c
.c.o:
${CC} ${CFLAGS} -c $< -o ${<:.c=.o} -I ${INC}
${NAME}: ${OBJS}
ar rc ${NAME} ${OBJS}
ranlib ${NAME}
all: ${NAME}
bonus : ${NAME}
clean:
rm -f ${OBJS} ${OBJSB}
fclean: clean
rm -f ${NAME}
re: fclean all
.PHONY: all clean fclean re bonus