-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (62 loc) · 1.41 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
##
## EPITECH PROJECT, 2022
## makefile
## File description:
## my_makefile
##
SRC = main.c \
init/window.c \
paint/manager.c \
event/event.c \
event/mouse.c \
event/init.c \
background/background.c \
button/init/button_init.c \
button/init/drop_init.c \
button/init/selection_init.c \
button/init/front_button.c \
button/manager.c \
button/refresh/selection.c \
button/refresh/refresh.c \
button/refresh/drop.c \
button/action/test.c \
button/action/tools.c \
slider/init.c \
slider/refresh/refresh.c \
slider/refresh/move.c \
slider/refresh/calcul.c \
textbox/init.c \
textbox/refresh/refresh.c \
textbox/refresh/selection.c \
textbox/refresh/text.c \
edition/refresh/refresh.c \
edition/refresh/draw.c \
edition/refresh/eraser.c \
edition/refresh/hand.c \
edition/init.c \
file/save/save.c \
file/open.c \
file/new.c \
other_window/validation_window/window.c \
other_window/validation_window/init.c
OBJ = $(SRC:.c=.o)
NAME = my_paint
LINE = \n
TEST = lib/libmy.a
FLAGS = -lcsfml-system \
-lcsfml-graphics \
-lcsfml-window \
-lcsfml-audio
all: $(NAME)
.c.o:
gcc -c $< -I include/ -L lib/ -lmy -lm -o $@ $(FLAGS)
$(NAME): $(OBJ)
ifeq (,$(wildcard lib/libmy.a))
cd lib/ && make && cd ../
endif
gcc -o $(NAME) $(OBJ) -I include/ -L lib/ -lmy -lm $(FLAGS)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all