-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 1.41 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vde-vasc <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/07/13 04:36:32 by vde-vasc #+# #+# #
# Updated: 2022/08/23 23:46:24 by vde-vasc ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
CFLAGS = -Wall -Wextra -Werror
CC = gcc
LIBFLAGS = -rcs
RM = rm -f
D_LIBFT = ./libft
LIBFT = ./libft/libft.a
FT_PRINTF = printf_utils.c ft_puthexa.c ft_printf.c argument_case.c
OBJECTS = $(FT_PRINTF:.c=.o)
all: $(NAME)
$(NAME): $(LIBFT) $(OBJECTS)
cp $(LIBFT) $(NAME)
ar $(LIBFLAGS) $(NAME) $(OBJECTS)
$(LIBFT): $(D_LIBFT)
$(MAKE) -C $(D_LIBFT)
clean:
$(MAKE) clean -C $(D_LIBFT)
$(RM) $(OBJECTS)
fclean: clean
$(MAKE) fclean -C $(D_LIBFT)
$(RM) $(NAME)
re: fclean all
.PHONY: all re clean fclean