-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (44 loc) · 1.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
53
54
55
56
##
## EPITECH PROJECT, 2021
## any
## File description:
## Makefile
##
CXX ?= g++
# Binaries
NAME = HackJump
# Flags
CXXFLAGS += -std=c++17 -W -Wall -Wextra -g # -Werror
CPPFLAGS += -I src/ -I include/
LDLIBS += -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
SRC = src/main.cpp \
src/Game.cpp \
\
src/screens/Game/GameScreen.cpp \
src/screens/Game/GameScreenPause.cpp \
src/screens/Game/GameScreenTerm.cpp \
src/screens/Game/GameScreenUpdates.cpp \
src/screens/Game/GameScreenUtils.cpp \
src/screens/Game/InitGameScreen.cpp \
src/screens/Game/PhysicsGameScreen.cpp \
src/screens/Game/Block.cpp \
src/screens/Game/maps.cpp \
\
src/screens/MenuScreen.cpp \
src/screens/MenuScreenUtils.cpp \
\
src/screens/CreditsScreen.cpp \
# Object files
OBJ = $(SRC:.cpp=.o)
# Rules
all: $(NAME)
$(NAME): $(OBJ) $(OBJM)
$(CXX) $(CXXFLAGS) -o $(NAME) $(OBJ) $(LDLIBS)
debug: CFLAGS += $(DEBUG)
debug: fclean $(NAME)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME) $(NAME_TEST)
re: fclean all
.PHONY: all test tests_run cov debug clean fclean re