-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (31 loc) · 1.24 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: seozkan <[email protected]. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/12/19 10:17:13 by seozkan #+# #+# #
# Updated: 2023/02/25 14:15:39 by seozkan ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = @gcc
RM = @rm -f
AR = ar rcs
FLAGS = -Wall -Wextra -Werror
YELLOW = \033[33;49;1m
END = \033[0;0m
SRC = ft_printf.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME):
$(CC) $(FLAGS) -c $(SRC)
$(AR) $(NAME) *.o
@echo "$(YELLOW)${NAME} ✔️$(END)"
clean:
${RM} ${OBJ}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re bonus