-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 1.33 KB
/
Makefile
File metadata and controls
37 lines (31 loc) · 1.33 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
35
36
37
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nnuno-ca <nnuno-ca@student.42porto.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/13 12:39:20 by nnuno-ca #+# #+# #
# Updated: 2023/01/28 13:31:50 by nnuno-ca ### ########.fr #
# #
# **************************************************************************** #
CC = cc
CFLAGS = -Wall -Wextra -Werror -I./includes/
RM = rm -rf
NAME = libftprintf.a
SRCS = ft_printf.c srcs/prt_hexa.c srcs/prt_int.c srcs/prt_ptr.c srcs/prt_str.c srcs/prt_unsigned.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) $(OBJS)
fclean: clean
$(MAKE) fclean -C ./libft
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re
.SILENT: