-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (39 loc) · 1.42 KB
/
Copy pathMakefile
File metadata and controls
49 lines (39 loc) · 1.42 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ttorbeyn <ttorbeyn@student.s19.be> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/01/19 11:56:18 by ttorbeyn #+# #+# #
# Updated: 2021/03/27 00:30:59 by hubert ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_printf.c\
ft_printf_c.c\
ft_printf_d.c\
ft_printf_p.c\
ft_printf_s.c\
ft_printf_x.c\
ft_printf_utils.c\
ft_printf_flags.c\
utils/ft_atoi.c\
utils/ft_itoa.c\
utils/ft_uitoa.c
CC = gcc
CFLAGS = -Wall -Werror -Wextra
OBJS = $(SRCS:.c=.o)
RM = rm -f
LIBC = ar rc
.c.o:
$(CC) $(CFLAGS) -c $< -o $(<:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(LIBC) $(NAME) $(OBJS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all, clean, fclean, re