-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
147 lines (109 loc) · 2.81 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
##
## EPITECH PROJECT, 2017
## Makefile
## File description:
## Makefile for the My RPG project
##
NAME = my_rpg
CC = gcc -lc_graph_prog
MAKE = /usr/bin/make
SRC_DIR = ./srcs
CONFIG = ./srcs/config_files
GAME = ./srcs/game
PATHFINDING= ./srcs/pathfinding
MAP = ./srcs/map
EVENTS = ./srcs/engine/events
ACTIONS = ./srcs/engine/actions
STAGE = ./srcs/engine/stage
SOUND = ./srcs/engine/sound
SAVE = ./srcs/engine/save
PARTICLE= ./srcs/particles
LIB_DIR = ./lib/my
UT_DIR = ./tests
LIB_DIR = ./lib/my
EXE = $(ACTIONS)/engine_actions_handler_fight.c\
$(ACTIONS)/engine_actions_handler_gui.c\
$(ACTIONS)/engine_actions_handler_panel.c\
$(ACTIONS)/engine_actions_handler.c\
$(ACTIONS)/engine_actions_trackbar.c\
$(ACTIONS)/engine_actions.c\
$(ACTIONS)/menu_action.c\
$(ACTIONS)/action_custom.c\
$(ACTIONS)/engine_init_ptr_func.c\
$(ACTIONS)/engine_quest.c\
$(ACTIONS)/handle_obj_for_quest.c\
$(EVENTS)/engine_events_handler_mouse.c\
$(EVENTS)/engine_events_point.c\
$(EVENTS)/engine_events_handler.c\
$(EVENTS)/engine_events.c\
$(SOUND)/engine_sound.c\
$(SAVE)/engine_save.c\
$(STAGE)/engine_stage_draw.c\
$(STAGE)/engine_stage_handler.c\
$(STAGE)/handle_item.c\
$(STAGE)/check_change_map.c\
$(SRC_DIR)/engine/engine.c\
$(GAME)/init_game.c\
$(GAME)/handle_quest.c\
$(PARTICLE)/create_particles.c\
$(PARTICLE)/update_particles.c\
$(SRC_DIR)/handlers/handle_tempo_display.c\
$(SRC_DIR)/handlers/handle_click_mov.c\
$(SRC_DIR)/handlers/handle_mov_player.c\
$(MAP)/init_tile_map.c\
$(MAP)/map_loading.c\
$(MAP)/map_creation.c\
$(CONFIG)/animation.c\
$(CONFIG)/init_size_animation.c\
$(CONFIG)/change_map.c\
$(CONFIG)/button.c\
$(CONFIG)/sprite.c\
$(CONFIG)/init.c\
$(CONFIG)/init_size_memory.c\
$(CONFIG)/order.c\
$(CONFIG)/item.c\
$(CONFIG)/bag.c\
$(CONFIG)/text.c\
$(CONFIG)/players.c\
$(SRC_DIR)/get.c\
$(SRC_DIR)/window.c\
$(SRC_DIR)/protec_empty_env.c\
$(SRC_DIR)/main.c\
$(SRC_DIR)/utils.c\
$(SRC_DIR)/draw.c\
$(PATHFINDING)/pathfinding.c\
$(PATHFINDING)/finder.c\
$(PATHFINDING)/draw_path.c\
$(PATHFINDING)/check_next_position.c\
$(SRC_DIR)/sprite_scale.c\
$(SRC_DIR)/load_file.c\
$(SRC_DIR)/move_bot.c\
$(SRC_DIR)/check_attack.c\
$(SRC_DIR)/start_anim.c\
OBJ = $(EXE:.c=.o)
UT =
UT2 =
RM = rm -f
CFLAGS = #-Wall -Wextra
CPPFLAGS= -I./includes/
LDFLAGS = -L./lib/ -lmy
UT_FLAGS= -lcriterion --coverage
INCLUDE = -I ./includes
all: LIB $(NAME)
LIB:
$(MAKE) -C $(LIB_DIR)
$(NAME): LIB $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
tests_run: LIB
$(CC) $(INCLUDE) -o $(NAME) $(UT) $(UT2) -lcriterion -coverage -L./lib/ -lmy
./$(NAME)
clean:
$(MAKE) clean -C $(LIB_DIR)
$(RM) $(OBJ)
ut_clean:
rm *gc*
fclean: clean
$(MAKE) fclean -C $(LIB_DIR)
$(RM) $(NAME)
re: fclean all
.PHONY: re all fclean clean