-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1 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
##
## EPITECH PROJECT, 2022
## Makefile
## File description:
## Compile my files
##
NAME = particle_manager
SRC = src/main.c \
src/anims/examples/anim_smoke.c \
src/anims/examples/anim_rain.c \
src/anims/examples/anim_exp.c \
src/anims/examples/anim_bubbles.c \
src/anims/examples/anim_capy.c \
src/anims/examples/anim_charging.c \
src/anims/create_anims_props_list.c \
src/event_manager.c \
src/update_manager.c \
src/draw_manager.c \
OBJ = $(SRC:.c=.o)
CFLAGS = -I./inc -Wall -Wextra -g3 -fsanitize=address
LIB = -L./lib/ -lparticle
LDFLAGS = -lcsfml-graphics -lcsfml-system -lm
BOLD = \e[1m
GREEN = \e[92m
WHITE = \e[0m
all: $(NAME)
$(NAME): $(OBJ)
@cd lib/particle && $(MAKE)
gcc $(CFLAGS) -o $(NAME) $(OBJ) $(LIB) $(LDFLAGS)
@echo -e "$(BOLD)$(TITLE)$(GREEN)COMPILATION COMPLETE\n$(WHITE)"
clean:
@cd lib/particle && $(MAKE) clean
@rm -f $(OBJ)
fclean: clean
@cd lib/particle && $(MAKE) fclean
@rm -f $(NAME)
lib_re:
@cd lib/particle && $(MAKE) re
re: fclean lib_re all