-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (29 loc) · 1.26 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: marcela <marcela@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/15 20:32:56 by marcela #+# #+# #
# Updated: 2022/11/15 22:23:07 by marcela ### ########.fr #
# #
# **************************************************************************** #
CC = cc
CFLAGS = -Wall -Wextra -Werror
NAME = libftprintf.a
SRCS = ft_print_hex.c ft_print_ptr.c ft_print_strs.c ft_print_unsigned.c\
ft_printf.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(MAKE) -C ./libft
cp libft/libft.a $(NAME)
ar rc $(NAME) $(OBJS)
clean:
$(MAKE) clean -C ./libft
rm -rf $(OBJS)
fclean: clean
$(MAKE) fclean -C ./libft
rm -rf $(NAME)
re: fclean all