-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (31 loc) · 1.5 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
42
43
44
45
46
47
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: douatla <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/28 13:16:24 by douatla #+# #+# #
# Updated: 2020/03/04 14:50:54 by douatla ### ########.fr #
# #
# **************************************************************************** #
GFLAG = gcc -Wall -Werror -Wextra
LIBFT = ../libft.a
FILES = srcs/func_utiles.c srcs/func_utiles_2.c srcs/find_tokken.c srcs/deal_tokken.c srcs/check_flag.c srcs/type_of_flag.c srcs/type_of_flag2.c srcs/ft_printf.c
FILES_O = ${FILES:.c=.o}
HEADER = ./srcs/ft_printf.h
EXEC = ft_printf
NAME = libftprintf.a
DEL = rm -Rf
YELLOW = \033[0;33m
NO_COLOR = \033[0m
all : ${NAME}
%.o: %.c ${HEADER}
@${GFLAG} -c -o $@ $<
${NAME}: ${FILES_O}
@ar -rcs ${LIBFT} ${FILES_O}
@python3 -c 'print("${YELLOW}Ft_printf compiled with success.${NO_COLOR}\n")'
clean :
@${DEL} ${FILES_O}
re : all
.PHONY : ${NAME} all clean re fclean exec