-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (44 loc) · 1023 Bytes
/
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
##
## EPITECH PROJECT, 2021
## Makefile
## File description:
## Makefile
##
CC = gcc
SRC = sources/main.c \
sources/conf.c \
sources/game_loop.c \
sources/read_file.c \
sources/draw_sprite.c \
sources/fill_struct.c \
sources/init_window.c \
sources/poll_event.c \
sources/count_lines.c \
sources/free_all.c \
sources/option_menu.c \
sources/menu_buttons.c \
sources/player.c \
sources/error_handling.c\
sources/move_player.c \
sources/intro.c \
sources/monster.c \
OBJ = $(SRC:.c=.o)
LDLIBS = -lmy
LDFLAGS = -L lib/my -l csfml-system -l csfml-window -l csfml-graphics -l csfml-audio -l csfml-network\
CPPFLAGS = -I ./include/
CFLAGS = -Wall -Wextra
NAME = my_rpg
all: $(NAME)
$(NAME): $(OBJ)
make -C lib/my
$(CC) $(OBJ) -o $(NAME) $(LDLIBS) $(LDFLAGS) $(CPPFLAGS)
debug: CFLAGS += -g
debug: re
clean:
make clean -C lib/my
rm -f $(OBJ)
fclean: clean
make fclean -C lib/my
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re