-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 1.16 KB
/
Makefile
File metadata and controls
34 lines (25 loc) · 1.16 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cmachado <cmachado@student.42lisboa.com +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/04/04 19:30:43 by cmachado #+# #+# #
# Updated: 2022/04/21 21:57:20 by cmachado ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c print_c.c print_s.c print_pct.c print_d.c \
print_p.c print_u.c
CFLAGS = -Wall -Werror -Wextra
all: $(NAME) clean
object:
gcc -c $(CFLAGS) $(SRC)
$(NAME): object
ar -crs $(NAME) *.o
clean:
rm -f *.o
fclean: clean
rm -f $(NAME)
re: fclean all