-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 1.21 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: gudaniel <gudaniel@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/05/01 14:40:36 by gudaniel #+# #+# #
# Updated: 2024/05/03 10:27:36 by gudaniel ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c printf_func1.c printf_func2.c \
OBJS = $(SRC:.c=.o)
COMPILER = cc
FLAGS = -Wall -Werror -Wextra
all: $(NAME)
$(NAME):
$(COMPILER) $(FLAGS) -c $(SRC)
ar rc $(NAME) $(OBJS)
# $(COMPILER) $(FLAGS) ft_printf.c $(NAME) -g
re: fclean $(NAME)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)