-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 1.17 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: danimart <danimart@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/09/15 17:21:01 by danimart #+# #+# #
# Updated: 2024/01/25 13:23:05 by danimart ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = gcc
CFLAGS = -Wall -Werror -Wextra
C_FILES = ft_printf.c write_num.c write_txt.c
O_FILES = $(C_FILES:.c=.o)
all: $(NAME)
$(NAME): $(O_FILES)
ar rc $(NAME) $(O_FILES)
clean:
rm -rf $(O_FILES)
fclean: clean
rm -rf $(NAME)
re: fclean $(NAME)
.PHONY: all clean fclean re