-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 1.25 KB
/
Makefile
File metadata and controls
39 lines (29 loc) · 1.25 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
38
39
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: sel-abbo <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/11/21 00:57:03 by sel-abbo #+# #+# #
# Updated: 2024/11/22 23:29:40 by sel-abbo ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
FLAGS = -Wall -Wextra -Werror
ARCH = ar rcs
RM = rm -f
FILES = ft_printf.c ft_putchar.c ft_putnbr.c ft_putstr.c ft_putnbr_unsigned.c ft_puthexa.c
OB = ${FILES:.c=.o}
%.o: %.c
${CC} ${FLAGS} -c $< -o $@
${NAME}: ${OB}
${ARCH} ${NAME} ${OB}
all: ${NAME}
clean:
${RM} ${OB}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re