-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (36 loc) · 863 Bytes
/
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
SRC = CreateMenu.cpp \
GameEngine.cpp \
AObject.cpp \
Bonus.cpp \
Bomb.cpp \
Button.cpp \
Camera.cpp \
Character.cpp \
Exception.cpp \
Explosion.cpp \
GameMap.cpp \
Player.cpp \
Sound.cpp \
Arrow.cpp \
LoadImg.cpp \
Mode.cpp \
Draw.cpp \
Save.cpp \
main.cpp
OBJS = $(SRC:.cpp=.o)
NAME = bomberman
CPP = g++
CPPFLAGS += -Iinclude/ -ILibBomberman_linux_x64/includes/
CPPFLAGS += -Wall -Werror -Wextra
LDFLAGS += -Wl,-rpath=LibBomberman_linux_x64/libs,-rpath=lib/
LDFLAGS += -LLibBomberman_linux_x64/libs -Llib/
LDFLAGS += -lgdl_gl -lGL -lGLEW -lrt -lfbxsdk -lSDL2 -lpthread -lGLU -lSDL -lfmodex64 -ldl
all : $(NAME)
$(NAME) : $(OBJS)
$(CPP) -o $(NAME) $(OBJS) $(CPPFLAGS) $(LDFLAGS)
clean :
rm -f $(OBJS)
fclean : clean
rm -f $(NAME)
re : fclean all
.PHONY : all clean fclean re