-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 1.25 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vgroux <vgroux@student.42lausanne.ch> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/06/30 14:09:53 by vgroux #+# #+# #
# Updated: 2022/10/25 15:54:36 by vgroux ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Wall -Wextra -Werror
RM = rm -f
SRCS = ft_ulltoa.c ft_printf_ptr.c ft_printf_utils.c ft_printf.c
OBJS = ${SRCS:.c=.o}
NAME = libftprintf.a
${NAME}: ${OBJS}
ar rcs ${NAME} ${OBJS}
all: ${NAME}
.c.o:
${CC} ${CFLAGS} -c $< -o ${<:.c=.o}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re