-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (29 loc) · 1.31 KB
/
Copy pathMakefile
File metadata and controls
43 lines (29 loc) · 1.31 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rrebois <rrebois@student.42lyon.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/22 12:29:17 by rrebois #+# #+# #
# Updated: 2022/11/25 17:07:57 by rrebois ### ########lyon.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
RM = rm -f
FLAGS = -Wall -Wextra -Werror
HEADER = ft_printf.h
SRCS = ft_printf.c ft_putchar.c ft_putstr.c ft_convert_address.c ft_putnbr.c ft_convert_nbr.c ft_putnbr_unsigned.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
%.o: %.c $(HEADER) Makefile
$(CC) $(FLAGS) -c $< -o $@
$(NAME): $(OBJS)
ar -rcs $(NAME) $(OBJS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re