-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (30 loc) · 1.55 KB
/
Copy pathMakefile
File metadata and controls
45 lines (30 loc) · 1.55 KB
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
42
43
44
45
define Intro
███████╗████████╗ ██████╗ ██████╗ ██╗███╗ ██╗████████╗███████╗
██╔════╝╚══██╔══╝ ██╔══██╗██╔══██╗██║████╗ ██║╚══██╔══╝██╔════╝
█████╗ ██║ ██████╔╝██████╔╝██║██╔██╗ ██║ ██║ █████╗
██╔══╝ ██║ ██╔═══╝ ██╔══██╗██║██║╚██╗██║ ██║ ██╔══╝
██║ ██║ ██║ ██║ ██║██║██║ ╚████║ ██║ ██║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝
endef
export
CC = gcc
CFLAGS = -Wall -Wextra -Werror
HEADER = Include/ft_printf.h
NAME = libftprintf.a
SRC = Src/ft_flags.c Src/ft_normalcase.c Src/ft_printf.c Src/ft_printtools.c Src/ft_putun.c Src/ft_printtools2.c
OBJ = ${SRC:.c=.o}
all : Intro $(NAME)
@echo "\x1b[32m The Program $(NAME) Is Ready To Use \x1b[0m"
$(NAME) : $(OBJ) $(HEADER)
@ar -rc $(NAME) $(OBJ)
%.o : %.c
@$(CC) $(CFLAGS) -c $< -o $@
@echo "\x1b[35m The Object File Of $< Is Created \x1b[0m"
clean :
@rm -f $(OBJ)
fclean : clean
@rm -f $(NAME)
bonus : all
re : fclean all
Intro :
@echo "\x1b[32m $$Intro \x1b[0m"