-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (31 loc) · 1.32 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
45
46
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ialdidi <ialdidi@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/15 08:50:47 by ialdidi #+# #+# #
# Updated: 2023/11/19 11:07:39 by ialdidi ### ########.fr #
# #
# **************************************************************************** #
SRCS = ft_printf.c \
sources/ft_putchar.c \
sources/ft_putstr.c \
sources/ft_putnbr_base.c \
sources/ft_print_address.c
OBJS = $(SRCS:.c=.o)
AR = ar rc
LIBRARY = includes/libftprintf.h
CFLAGS = -Wall -Wextra -Werror
NAME = libftprintf.a
all : $(NAME)
$(NAME) : $(OBJS)
$(AR) $(NAME) $(OBJS)
%.o : %.c $(LIBRARY)
$(CC) $(CFLAGS) -o $@ -c $<
clean :
$(RM) $(OBJS)
fclean: clean
@$(RM) $(NAME) $(OBJS)
re: fclean all