-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
120 lines (106 loc) · 2.46 KB
/
Copy pathMakefile
File metadata and controls
120 lines (106 loc) · 2.46 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vportell <vportell@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/12/18 01:47:06 by vportell #+# #+# #
# Updated: 2016/12/24 06:12:24 by vportell ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CFLAGS = -Wall -Wextra -Werror
LIB_DIR = ./libft
SRCS = ft_printf.c \
setup.c \
parse.c \
append.c \
format.c \
format_2.c \
print_1.c \
print_2.c \
print_3.c \
print_4.c \
print_5.c \
print_segments.c \
brain.c \
wchar_parse.c
OBJS = $(SRCS:.c=.o)
LIB_FILES = ft_memset \
ft_bzero \
ft_memcpy \
ft_memccpy \
ft_memmove \
ft_memchr \
ft_memcmp \
ft_strlen \
ft_strdup \
ft_strcpy \
ft_strncpy \
ft_strcat \
ft_strncat \
ft_strlcat \
ft_strchr \
ft_strrchr \
ft_strstr \
ft_strnstr \
ft_strcmp \
ft_strncmp \
ft_atoi \
ft_isalpha \
ft_isdigit \
ft_isalnum \
ft_isascii \
ft_isprint \
ft_toupper \
ft_tolower \
ft_memalloc \
ft_memdel \
ft_strnew \
ft_strdel \
ft_strclr \
ft_striter \
ft_striteri \
ft_strmap \
ft_strmapi \
ft_strequ \
ft_strnequ \
ft_strsub \
ft_strjoin \
ft_strtrim \
ft_strsplit \
ft_itoa \
ft_putchar \
ft_putstr \
ft_putendl \
ft_putnbr \
ft_putchar_fd \
ft_putstr_fd \
ft_putendl_fd \
ft_putnbr_fd \
ft_lstnew \
ft_lstdelone \
ft_lstdel \
ft_lstadd \
ft_lstiter \
ft_lstmap \
ft_is_lowercase \
ft_is_uppercase \
ft_is_space \
ft_strrev \
ft_word_count
LIB_SRCS := $(addprefix $(LIB_DIR)/, $(addsuffix .c, $(LIB_FILES)))
LIB_OBJS = $(LIB_SRCS:.c=.o)
RM = rm -f
.PHONY: fclean all
all: $(NAME)
$(NAME): $(OBJS) $(LIB_OBJS)
ar rc $(NAME) $(LIB_OBJS) $(OBJS)
ranlib $(NAME)
clean:
$(RM) $(OBJS)
$(RM) $(LIB_OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all