-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (39 loc) · 1.4 KB
/
Makefile
File metadata and controls
52 lines (39 loc) · 1.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fulloa-s <fulloa-s@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/08 09:02:50 by fulloa-s #+# #+# #
# Updated: 2021/02/09 12:20:21 by fulloa-s ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_printf.c \
ft_putstr.c \
ft_decimal.c \
ft_printf_utils.c \
ft_itoa.c \
ft_itoa_base.c \
ft_unsigned.c \
ft_hexadecimal.c \
ft_address.c \
ft_putchar.c \
ft_precision.c \
ft_flag.c
OBJS = $(SRCS:.c=.o)
CC = gcc
CFLAGS = -Wall -Wextra -Werror
RM = rm -f
.c.o :
$(CC) $(CFLAGS) -c $<
$(NAME) : $(OBJS)
ar rcs $(NAME) $(OBJS)
all : $(NAME)
clean :
$(RM) $(OBJS)
fclean : clean
$(RM) $(NAME)
re : fclean all
.PHONY : all clean fclean re