-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 1.15 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rsebasti <[email protected]. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/31 00:57:23 by rsebasti #+# #+# #
# Updated: 2024/11/12 09:33:18 by rsebasti ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
FLAGS = -Wall -Wextra -Werror
SRCS = ft_printf.c \
ft_put.c
OBJS = $(SRCS:.c=.o)
%.o: %.c
cc $(FLAGS) -c $< -o $@
$(NAME): $(OBJS)
ar -rcs $(NAME) $(OBJS)
all: $(NAME)
clean:
rm -f $(OBJS) $(BONUS_OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all