-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 1.24 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: asfaihi <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/03/08 20:05:13 by asfaihi #+# #+# #
# Updated: 2020/11/03 12:36:25 by asfaihi ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_printf.a
SRC = ft_printf.c hexa.c libft_functions.c libft_functions_2.c \
percent_divider.c percent_s_printers.c printers.c percent_p.c
FLAGS = -Wall -Wextra -Werror
OBJECT = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJECT)
ar rcs $(NAME) $(OBJECT)
%.o:%.c
gcc $(FLAGS) -c $<
clean:
/bin/rm -f $(OBJECT)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all