-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (38 loc) · 1.43 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aestraic <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/03/22 13:20:07 by aestraic #+# #+# #
# Updated: 2022/08/24 13:52:21 by aestraic ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_conv_character.c\
ft_conv_hex1.c\
ft_conv_int.c\
ft_conv_pointer.c\
ft_conv_str.c\
ft_conv_unsigned.c\
ft_printf.c
HEADER_PATH = header
COMPILED = $(SRC:.c=.o)
OBJ = $(COMPILED)
all: $(NAME) libft
%.o : %.c
cc -Wall -Wextra -Werror -I$(HEADER_PATH) -c $^
$(NAME): $(COMPILED)
@ar -rucv $(NAME) $(COMPILED) $^
libft:
# @echo MAKE LIBFT
@make all -C libft
clean:
make clean -C libft
rm -f $(COMPILED)
fclean: clean
make fclean -C libft
rm -f $(NAME)
re: fclean all
.PHONY: clean fclean re bonus libft archive