-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
103 lines (92 loc) · 3.77 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
##
## EPITECH PROJECT, 2021
## B-CPE-110-TLS-1-1-BSQ-younes1.bahri
## File description:
## Makefile
##
SRC = src/index.c \
src/addons/secondary_screen/secondary_screen.c \
src/addons/secondary_screen/change_secondary_screen.c \
src/addons/translation_animation/translation_animation.c \
src/addons/translation_animation/translation_action.c \
src/addons/translation_animation/init_translation.c \
src/addons/parallax/parallax.c \
src/addons/rect_animation/rect_animation.c \
src/addons/rect_animation/rect_action.c \
src/addons/move_view/move_view.c \
src/addons/move_view/view_action.c \
src/addons/follow_view/follow_view.c \
src/addons/change_scene/change_scene.c \
src/addons/event_manager/event_manager.c \
src/addons/event_manager/func_checker_event_a.c \
src/addons/event_manager/func_checker_event_b.c \
src/addons/event_manager/event_controller.c \
src/addons/event_manager/tick_controller.c \
src/addons/dialogue_manager/dialogue_manager.c \
src/addons/dialogue_manager/tick.c \
src/addons/dialogue_manager/text_animation/text_animation.c \
src/addons/dialogue_manager/text_animation/event.c \
src/addons/dialogue_manager/select_manager/event.c \
src/addons/dialogue_manager/select_manager/tick.c \
src/addons/dialogue_manager/select_manager/init.c \
src/addons/position_by_view/position_by_view.c \
src/addons/multi_enable/multi_enable.c \
src/addons/multi_disable/multi_disable.c \
src/addons/play_sound/play_sound.c \
src/addons/player_controller/player_controller.c \
src/addons/player_controller/movement.c \
src/addons/pokemons/pokemons.c \
src/addons/pokemons_animation/pokemons_animation.c \
src/addons/pokemons_animation/tick.c \
src/addons/pokemons_animation/write_data.c \
src/addons/interact_zone/interact_zone.c \
src/addons/data/data.c \
src/addons/load_data_object/load_data_object.c \
src/addons/particle/particle.c \
src/addons/particle/particle_movement/particle_move.c \
src/addons/grid_controller/grid_controller.c \
src/addons/grid_controller/movement.c \
src/addons/grid_controller/attack_controller.c \
src/addons/second_ai/second_ai.c \
src/addons/second_ai/attack_enemy.c \
src/addons/second_ai/follow_main.c \
src/addons/second_ai/attack_ai.c \
src/addons/enemy_ai/enemy_ai.c \
src/addons/grid_controller/receive_damage.c \
src/addons/mobs/mobs.c \
src/addons/health_check/health_check.c \
src/addons/enemy_ai/tick.c \
src/addons/parameter_window/parameter_window.c \
src/addons/parameter_fps/parameter_fps.c \
src/addons/parameter_volume/parameter_volume.c \
src/addons/save_scene/save_scene.c \
src/addons/load_scene/load_scene.c \
src/addons/quit_game/quit_game.c \
src/addons/pause/pause.c \
src/addons/change_color/change_color.c \
src/addons/click_pause/click_pause.c
OBJ = $(SRC:.c=.o)
NAME = my_rpg
LIBFLAG = lib/game_engine.a -Lcsfml-window -lcsfml-graphics -lcsfml-system
LIBFLAGS = -lcsfml-audio lib/liblist.a lib/libjson_parser.a lib/libmy.a -lm
CFLAGS += -I ./include -g3
all: $(NAME)
$(NAME): $(OBJ)
$(MAKE) -C ./lib/game_engine
$(MAKE) -C ./lib/my
$(MAKE) -C ./lib/linked_list
$(MAKE) -C ./lib/json_parser
$(CC) -o $(NAME) $(OBJ) $(LIBFLAG) $(LIBFLAGS)
clean:
$(MAKE) -C ./lib/game_engine clean
$(MAKE) -C ./lib/my clean
$(MAKE) -C ./lib/linked_list clean
$(MAKE) -C ./lib/json_parser clean
rm -f $(OBJ)
fclean: clean
$(MAKE) -C ./lib/game_engine fclean
$(MAKE) -C ./lib/my fclean
$(MAKE) -C ./lib/linked_list fclean
$(MAKE) -C ./lib/json_parser fclean
rm -rf $(NAME)
re: fclean all