-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (41 loc) · 1.64 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
49
50
51
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lfilloux <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/09 17:55:37 by rblondia #+# #+# #
# Updated: 2021/11/16 11:16:13 by lfilloux ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = utils/ft_putchar.c \
utils/ft_putnbr.c \
utils/ft_putnbr_base.c \
utils/ft_putstr.c \
printer/ft_printer.c \
printer/ft_print_char.c \
printer/ft_print_pointer.c \
printer/ft_print_int.c \
printer/ft_print_large_hexa.c \
printer/ft_print_small_hexa.c \
printer/ft_print_str.c \
printer/ft_print_unsigned.c \
ft_printf.c
OBJS = ${SRCS:.c=.o}
INCLUDES = ft_printf.h
CC = gcc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
%.o: %.c ft_printf.h
${CC} ${CFLAGS} -c $< -o $@
$(NAME): ${OBJS}
ar rcs ${NAME} ${OBJS}
all: ${NAME}
clean:
${RM} ${OBJS} ${BONUS_OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re %.o