-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (41 loc) · 1.21 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
##
## EPITECH PROJECT, 2022
## myftp
## File description:
## Makefile
##
CC = g++
SRC_CORE = main.cpp \
class/LoadLib.cpp \
class/Utils.cpp \
class/Core.cpp \
class/Menu.cpp
OBJ_CORE = $(SRC_CORE:.cpp=.o)
CFLAGS = -std=c++20 -Wall -Wextra -Werror -g3 -lm -ldl
CPPFLAGS = -I./class -I./graphical/Ncurses -I./graphical/SFML -I./graphical/SDL -I./include/
NAME = arcade
all: core games graphicals
core: $(OBJ_CORE)
$(CC) -g3 -o $(NAME) $(OBJ_CORE) $(CFLAGS) $(CPPFLAGS)
games:
make -C games/ --no-print-directory
graphicals:
make -C graphical/Ncurses/ --no-print-directory
make -C graphical/SDL/ --no-print-directory
make -C graphical/SFML/ --no-print-directory
clean:
$(RM) $(OBJ_CORE)
make -C games/ clean --no-print-directory
make -C graphical/Ncurses/ clean --no-print-directory
make -C graphical/SDL/ clean --no-print-directory
make -C graphical/SFML/ clean --no-print-directory
fclean: clean
$(RM) $(NAME)
make -C games/ fclean --no-print-directory
make -C graphical/Ncurses/ fclean --no-print-directory
make -C graphical/SDL/ fclean --no-print-directory
make -C graphical/SFML/ fclean --no-print-directory
re:
$(MAKE) fclean
$(MAKE) all
.PHONY: all clean fclean re games graphicals