-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
49 lines (35 loc) · 851 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
##
## EPITECH PROJECT, 2017
## my_hunter
## File description:
## my_hunter Makefile
##
NAME = my_hunter
LIB_DIR = ./lib
INC_DIR = ./include
FLAGS = -Wall -Wextra
LIB_FLAG = -l c_graph_prog -L$(LIB_DIR) -lmy
SRC = src/main.c \
src/assets_utils.c \
src/utils.c \
src/my_hunter.c \
src/events.c \
src/mouse_events.c \
src/score.c \
src/animation.c \
src/anim_utils.c \
src/player.c
CFLAGS = $(FLAGS) $(LIB_FLAG) -I$(INC_DIR)
all: $(NAME) msg
$(NAME): library
gcc -o $(NAME) $(SRC) $(CFLAGS)
library:
make -C $(LIB_DIR)
clean:
rm -f *.o
fclean: clean
rm -f $(NAME)
make fclean -C $(LIB_DIR)
re: fclean all
msg:
@echo "==> SUCCESSFULLY COMPILED"