-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
89 lines (68 loc) · 1.89 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
##
## EPITECH PROJECT, 2019
## palindrome
## File description:
## Makefile
##
CXX = g++
CXXFLAGS = -I $(INCLUDE_PATH) -Wall -Wextra #-Werror
CORE_PATH = core/
GAMES_PATH = games/
LIB_PATH = lib/
NIBBLER_GAME_PATH = $(GAMES_PATH)/nibbler/
PACMAN_GAME_PATH = $(GAMES_PATH)/pacman/
NCURSES_LIB_PATH = $(LIB_PATH)/lib_arcade_ncurses/
SDL_LIB_PATH = $(LIB_PATH)/lib_arcade_sdl/
SFML_LLIB_PATH = $(LIB_PATH)/lib_arcade_sfml/
END = \033[0m
BOLD = \033[1m
GREY = \033[30m
RED = \033[31m
GREEN = \033[32m
BLINK = \033[32;5m
YELLOW = \033[33m
BLUE = \033[34m
PURPLE = \033[35m
CYAN = \033[36m
WHITE = \033[37m
all:
@echo "$(BOLD)$(CYAN)\n\n\t-----STARTING COMPILATION-----\n\n$(YELLOW)"
@make -C $(CORE_PATH)
@make -C $(NIBBLER_GAME_PATH)
@make -C $(PACMAN_GAME_PATH)
@make -C $(NCURSES_LIB_PATH)
@make -C $(SDL_LIB_PATH)
@make -C $(SFML_LLIB_PATH)
@echo "$(BOLD)$(GREEN)\n\n\t-----COMPILATION SUCCESSFUL-----"
core: games_and_graphicals
make -C $(CORE_PATH)
games: graphicals
make -C $(NIBBLER_GAME_PATH)
make -C $(PACMAN_GAME_PATH)
graphicals:
make -C $(NCURSES_LIB_PATH)
make -C $(SDL_LIB_PATH)
make -C $(SFML_LLIB_PATH)
games_and_graphicals:
make -C $(NIBBLER_GAME_PATH)
make -C $(PACMAN_GAME_PATH)
make -C $(NCURSES_LIB_PATH)
make -C $(SDL_LIB_PATH)
make -C $(SFML_LLIB_PATH)
clean:
make clean -C $(NIBBLER_GAME_PATH)
make clean -C $(PACMAN_GAME_PATH)
make clean -C $(NCURSES_LIB_PATH)
make clean -C $(SDL_LIB_PATH)
make clean -C $(SFML_LLIB_PATH)
@echo "$(BOLD)$(GREEN)\t-----WORKSPACE CLEANED-----"
fclean: clean
make fclean -C $(NIBBLER_GAME_PATH)
make fclean -C $(PACMAN_GAME_PATH)
make fclean -C $(NCURSES_LIB_PATH)
make fclean -C $(SDL_LIB_PATH)
make fclean -C $(SFML_LLIB_PATH)
rm -rf arcade
@echo "$(BOLD)$(GREEN)\t-----WORKSPACE FCLEANED-----"
re: fclean all
.PHONY: clean fclean all re