-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 1.29 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
46
47
48
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: szerisen <szerisen@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/04 20:25:57 by szerisen #+# #+# #
# Updated: 2023/01/08 20:25:57 by szerisen ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
OBJS = ${SRCS:.c=.o}
RM = rm -f
GCCF = gcc -Wall -Wextra -Werror
LIB = ar -rcs
SRCS = ft_printf.c\
ft_putchar_fd.c\
ft_putchar.c\
ft_puthex.c\
ft_putnbr_fd.c\
ft_putunbr_fd.c\
ft_putstr_fd.c\
ft_strlen.c\
ft_putptr.c\
.c.o:
${GCCF} -c $< -o ${<:.c=.o}
$(NAME): ${OBJS}
${LIB} ${NAME} ${OBJS}
all: ${NAME}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all