-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 1.56 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
48
49
50
51
52
53
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: laymard <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/04/11 19:48:57 by laymard #+# #+# #
# Updated: 2017/08/19 19:26:10 by laymard ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
LIB = libft.a
SRCSF = srcs/ft_parser.c \
srcs/main.c \
srcs/map.c \
srcs/assign.c \
srcs/charfunctions.c \
srcs/spot.c \
srcs/count.c \
srcs/vault.c
OBJSF= $(SRCSF:.c=.o)
D_COLOR= \033[0m
GREEN1= \033[32m
GREY1= \033[37m
INCLUDE= -I Libft/
CCO = gcc -Wall -Werror -Wextra
all: $(NAME)
$(NAME):
@make -C ./Libft
@$(CCO) -o $(NAME) $(SRCSF) Libft/libft.a $(INCLUDE)
@echo "$(GREY1)L'executable a ete cree$(D_COLOR)"
clean:
@rm -f $(OBJSF)
@make -C ./Libft clean
@echo "$(GREEN1)Les .o ont ete supprimer$(D_COLOR)"
fclean: clean
@rm -f $(NAME)
@make -C ./Libft fclean
@echo "$(GREEN1)La bibliotheque a egalement ete supprimer$(D_COLOR)"
re: fclean all