/
Makefile
64 lines (44 loc) · 1.04 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
##
## EPITECH PROJECT, 2020
## OOP_arcade_2019
## File description:
## Makefile
##
NAME = arcade
DIRCORE = ./src
DIRLIB = ./lib
DIRGAME = ./games
SRCS = $(DIRCORE)/main.cpp \
$(DIRCORE)/DLLoaderException.cpp \
$(DIRCORE)/Entity.cpp \
$(DIRCORE)/Core.cpp \
$(DIRCORE)/MenuInfo.cpp \
$(DIRCORE)/MenuArcade.cpp \
$(DIRCORE)/DirectoryReader.cpp \
$(DIRCORE)/TimerFPS.cpp \
$(DIRCORE)/ScoreModule.cpp \
$(DIRCORE)/FileManager.cpp \
OBJS = $(SRCS:.cpp=.o)
CC = g++
RM = rm -rf
CXXFLAGS += -W -Wall -Wextra -Wextra -I./include/ -I./../../include/ -I./include/entity/ -std=c++17 -g
all: $(NAME)
$(NAME): core
make -C $(DIRLIB)
make -C $(DIRGAME)
core: $(OBJS)
$(CC) -o $(NAME) $(OBJS) -ldl
graphicals:
make -C $(DIRLIB)
games:
make -C $(DIRGAME)
clean:
$(RM) $(OBJS)
make clean -C $(DIRLIB)
make clean -C $(DIRGAME)
fclean: clean
rm -rf $(NAME)
make fclean -C $(DIRLIB)
make fclean -C $(DIRGAME)
re: fclean all
.PHONY: all core games graphicals clean fclean