-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
101 lines (88 loc) · 2.49 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
##
## EPITECH PROJECT, 2018
## Makefile Marius
## File description:
## Makefile Marius
##
RM = rm -r -f
NAME = my_rpg
SRC = src/alloc/alloc.c \
src/audio/audio.c \
src/combat/attack.c \
src/combat/combat_nature.c \
src/combat/combat_nature_2.c \
src/combat/combat_nature_3.c \
src/combat/combat_nature_4.c \
src/combat/combat_nature_5.c \
src/combat/set_combat.c \
src/destroy/destroy.c \
src/event/event_combat.c \
src/event/event.c \
src/event/event_optional.c \
src/event/events_option.c \
src/event/event_combat_2.c \
src/event/event_combat_3.c \
src/event/event_2.c \
src/event/move_sache.c \
src/event/event_key_code.c \
src/event/up_move_2.c \
src/event/up_move_2_2.c \
src/event/up_move_2_3.c \
src/event/left_move_2.c \
src/event/right_move_2.c \
src/event/down_move_2.c \
src/event/key_e_move.c \
src/event/event_inventory.c \
src/game_play/game.c \
src/game_play/game_2.c \
src/game_play/game_3.c \
src/game_play/game_4.c \
src/game_play/game_5.c \
src/game_play/game_6.c \
src/game_play/fight_npc_func.c \
src/game_play/fight_npc_func_2.c \
src/game_play/fight_npc_func_3.c \
src/game_play/inventory.c \
src/game_play/bag.c \
src/game_play/bag_2.c \
src/help/help.c \
src/init_variable/init_game_base.c \
src/init_variable/init_game_base_2.c \
src/init_variable/init_2.c \
src/init_variable/init_inventory.c \
src/init_variable/init.c \
src/init_variable/init_text.c \
src/init_variable/init_sac.c \
src/intro/intro.c \
src/intro/menu_intro.c \
src/options/create_rand.c \
src/options/get_info.c \
src/options/rect.c \
src/options/print_text.c \
src/options/resize.c \
src/options/options.c \
src/options/utils.c \
src/options/poke.c \
src/loop.c \
src/main.c
OBJ = $(SRC:.c=.o)
CFLAGS += -Wall -Wextra -I./include
LDFLAGS = -Llib/my -lmy -lcsfml-graphics -lcsfml-audio -lcsfml-window -lcsfml-system
$(NAME): $(OBJ)
make -C ./lib/my
gcc -o $(NAME) $(OBJ) $(LDFLAGS)
rm -rf *.o
rm -rf */*.o
rm -rf */*/*.o
$(RM) ./lib/my/*.a
debug: CFLAGS += -g
debug: re
all: $(NAME)
clean:
$(RM) $(OBJ)
fclean: clean
make -C ./lib/my fclean
$(RM) $(NAME)
$(RM) *~
$(RM) ./lib/my/*.a
re: fclean all