-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 1.19 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aarbaoui <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/24 15:01:59 by aarbaoui #+# #+# #
# Updated: 2022/10/24 15:02:52 by aarbaoui ### ########.fr #
# #
# **************************************************************************** #
NAME= libftprintf.a
SRCS= ft_printf.c ft_putchar.c ft_putmem.c ft_putnbr.c ft_putnbr_b.c ft_putnbr_u.c ft_putstr.c
OBJS= ${SRCS:%.c=%.o}
FLAGS= -Wall -Werror -Wextra
CC = cc
all:${NAME}
${NAME}:${OBJS}
@ar rc $(NAME) $(OBJS)
%.o:%.c
${CC} ${FLAGS} -c $<
clean:
@rm -f ${OBJS}
fclean:clean
@rm -f ${NAME}
re:fclean all