-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 1.4 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jede-ara <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/29 16:24:17 by jede-ara #+# #+# #
# Updated: 2022/12/02 14:39:21 by jede-ara ### ########.fr #
# #
# **************************************************************************** #
SRC = ft_putchar.c ft_putstr.c ft_printf.c ft_print_hex.c ft_print_pointer.c \
ft_print_unsig.c ft_putnbr.c
NAME = libftprintf.a
CC = cc
CFLAGS = -Wall -Wextra -Werror
OBJ = $(SRC:.c=.o)
%.o: %.c
@cc $(CFLAGS) -c $< -o $@
@echo "[OK] Build completed"
all: $(NAME)
$(NAME): $(OBJ)
@ar rc $(NAME) $(OBJ)
@echo "[Success] Done the compilation Printf"
clean:
@rm -f $(OBJ)
@echo "[Deleting] Object files deleted"
fclean: clean
@rm -f $(NAME)
@echo "[Deleting] Printf.a deleted"
re: fclean all
.PHONY: all clean fclean re