-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 1.16 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rapcampo <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/10/24 13:37:01 by rapcampo #+# #+# #
# Updated: 2023/10/24 13:37:03 by rapcampo ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
CFLAGS = -Wextra -Werror -Wall
SRCS = ft_printf.c ft_print_nbr.c
OBJS = $(SRCS:.c=.o)
RM = rm -f
LIBC = ar -rcs
all: $(NAME)
$(NAME): $(OBJS)
$(LIBC) $(NAME) $(OBJS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re