-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 1.29 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: adiaz-be <adiaz-be@student.42malaga.c +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/13 15:40:29 by adiaz-be #+# #+# #
# Updated: 2022/10/13 15:40:33 by adiaz-be ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c \
ft_putchar_pf.c \
ft_putstr_pf.c \
ft_putnbr_pf.c \
ft_putuint_pf.c \
ft_puthex_pf.c \
ft_putptr_pf.c \
ft_aux_pf.c \
OBJS = $(SRC:.c=.o)
CC = gcc
CFLAGS = -Wall -Werror -Wextra
RM = rm -rf
AR = ar crs
$(NAME): $(OBJS)
$(AR) $(NAME) $(OBJS)
all: $(NAME)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re