-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
100 lines (81 loc) · 1.71 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
##
## Makefile for Bomberman in /home/mayouk_j/CPP/Bomberman
##
## Made by jimmy mayoukou
## Login <mayouk_j@epitech.net>
##
## Started on Wed May 8 02:08:07 2013 jimmy mayoukou
## Last update Sun Jun 9 20:28:55 2013 leo chazal
##
NAME= bomberman
DEBUG ?= false
OBJDIR= ./objs/
SRCDIR= ./srcs/
LIBDIR= ./libs/
INCLUDE= -I ./includes/ -I ./includes/gdl/
VPATH= $(SRCDIR)
CXXFLAGS= -W -Wall -Wextra # -Werror
ifeq ($(DEBUG),true)
CXXFLAGS += -g3 -DDEBUG
endif
LDFLAGS= -L libs/ -l fmodex64 -lgdl_gl -framework OpenGL
CXXFLAGS += $(INCLUDE)
SRC= main.cpp \
Game.cpp \
Camera.cpp \
Engine.cpp \
Map.cpp \
MapView.cpp \
Block.cpp \
BlockView.cpp \
Tile.cpp \
TileView.cpp \
Wall.cpp \
WallView.cpp \
APlayer.cpp \
Player.cpp \
PlayerView.cpp \
Bonus.cpp \
BonusView.cpp \
Bomb.cpp \
BombView.cpp \
Fire.cpp \
FireView.cpp \
Warfare.cpp \
Sound.cpp \
MyText.cpp \
Save.cpp \
Intro.cpp \
IntroView.cpp \
Geometrics.cpp \
IA.cpp \
KeyHandler.cpp \
MainMenuHomeView.cpp \
MainMenuOptionsView.cpp \
MainMenuPlaySoloView.cpp \
MainMenuHome.cpp \
MainMenuOptions.cpp \
MainMenuPlaySolo.cpp \
MainMenuCredit.cpp \
MainMenuCreditView.cpp \
Img.cpp \
MainMenuLoadGame.cpp \
MainMenuLoadGameView.cpp \
Drawable.cpp \
TitleScreen.cpp \
EndGameScreen.cpp \
Utilities.cpp \
Error.cpp \
ErrorView.cpp \
OBJ= $(addprefix $(OBJDIR), $(SRC:.cpp=.o))
$(NAME): $(OBJ)
$(CXX) $(OBJ) -o $(NAME) $(LDFLAGS)
all: $(NAME)
$(OBJDIR)%.o: %.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re