-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 1.33 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dalves-p <dalves-p@student.42sp.org.br> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/07/05 14:20:03 by dalves-p #+# #+# #
# Updated: 2022/02/17 20:53:51 by dalves-p ### ########.fr #
# #
# **************************************************************************** #
CC = clang
SRCS = ft_printf.c ft_printf_chr.c ft_printf_nbr.c ft_printf_hex.c ft_format.c ft_printf_flags.c
CFLAGS = -Wall -Wextra -Werror
NAME = libftprintf.a
RM = rm -f
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
make -C libft/
ar rcs $(NAME) $(OBJS) libft/*.o
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
$(RM) $(OBJS)
bonus: all
fclean: clean
$(RM) $(NAME)
$(RM) *.out
make fclean -C libft/
re: fclean all
.PHONY: all clean fclean re