-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 1.22 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lhanna <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/12/22 18:32:09 by lhanna #+# #+# #
# Updated: 2021/12/22 18:32:52 by lhanna ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = printf.c put_c.c put_d.c put_p.c put_s.c put_u.c put_x.c
OBJ = $(SRC:.c=.o)
%.o: %.c
@gcc $(FLAG) -c $< -o $@
all: $(NAME)
$(NAME): $(OBJ)
@ar rc $(NAME) $(OBJ)
@ranlib $(NAME)
FLAG = -Wall -Wextra -Werror -I ft_printf.h
clean:
@rm -f $(OBJ)
fclean: clean
@rm -f $(NAME)
re: fclean all
.PHONY: all, clean, fclean, re