-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
117 lines (97 loc) · 4.43 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
##
## Makefile for Plazza in /home/gastal_r/rendu/Plazza/
##
## Made by gastal_r
## Login <[email protected]>
##
## Started on Sat Apr 29 23:26:33 2017 gastal_r
##
OS = $(shell uname -s)
ifeq ($(OS), Darwin)
ECHO = echo
else
ECHO = /bin/echo -e
endif
DEFAULT = "\033[00m"
GREEN = "\033[0;32m"
TEAL = "\033[1;36m"
RED = "\033[1;31m"
YELLOW = "\033[1;33m"
BLUE = "\033[1;34m"
CC = g++
RM = rm -f
NAME = bin/linux/IndieStudio
CXXFLAGS += -I./Indie-Studio/include -I./Indie-Studio-Dependencies/linux/include
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/Bites
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/Overlay
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/HLMS
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/MeshLodGenerator
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/Paging
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/RenderSystems
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/RTShadersSystem
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/Terrain
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/Threading
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OGRE/Volume
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OIS
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/cegui-0
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OgreBullet/
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OgreBullet/Collisions
CXXFLAGS += -I./Indie-Studio-Dependencies/linux/include/OgreBullet/Dynamics
CXXFLAGS += -L./Indie-Studio-Dependencies/linux/lib
CXXFLAGS += -L./Indie-Studio-Dependencies/linux/lib/OGRE
CXXFLAGS += -L./Indie-Studio-Dependencies/linux/lib/cegui-0.8
CXXFLAGS += -lOIS
CXXFLAGS += -lOgreBites -lOgreHLMS -lOgreMain -lOgreMeshLodGenerator -lOgreOverlay
CXXFLAGS += -lOgrePaging -lOgreProperty -lOgreRTShaderSystem -lOgreTerrain -lOgreVolume
CXXFLAGS += -lboost_system
CXXFLAGS += -lCEGUIOgreRenderer-0 -lCEGUIBase-0 -lCEGUICommonDialogs-0 -lCEGUIOpenGLRenderer-0
CXXFLAGS += -lPocoFoundation
CXXFLAGS += -lBulletCollision -lBulletDynamics -lBulletSoftBody -lLinearMath
CXXFLAGS += -lOgreBulletCollisions -lOgreBulletDynamics
CXXFLAGS += -lOgreOggSound
CXXFLAGS += -lCgGL -lCg
CXXFLAGS += -lsioclient -lpthread
CXXFLAGS += -Wno-deprecated-declarations -g -g3
SRC = Indie-Studio/src/CameraMan.cpp \
Indie-Studio/src/DotSceneLoader.cpp \
Indie-Studio/src/Socket.cpp \
Indie-Studio/src/Entity.cpp \
Indie-Studio/src/Player.cpp \
Indie-Studio/src/GameStateManager.cpp \
Indie-Studio/src/Dungeon.cpp \
Indie-Studio/src/Menu.cpp \
Indie-Studio/src/Indie.cpp \
Indie-Studio/src/SplashScreen.cpp \
Indie-Studio/src/Spell.cpp \
Indie-Studio/src/SpellManager.cpp \
Indie-Studio/src/Collision.cpp \
Indie-Studio/src/AllSpells.cpp \
Indie-Studio/src/WorkingQueue.cpp \
Indie-Studio/src/GameLogic.cpp \
Indie-Studio/src/Mobs.cpp \
Indie-Studio/src/main.cpp
OBJ = $(SRC:.cpp=.o)
all : title $(NAME)
install :
@./setup.sh
$(MAKE) all
cp bin/linux/IndieStudio ~/bin/
cp installPackages/* ~/bin
cp -r Indie-Studio/media ~/bin
title :
@$(ECHO) $(YELLOW) [ $(TEAL)INDIE-STUDIO$(YELLOW) ] $(DEFAULT)
$(NAME) : $(OBJ)
@$(CXX) -o $(NAME) $(OBJ) $(CXXFLAGS) && \
$(ECHO) $(YELLOW)[$(GREEN)OK$(YELLOW)]$(BLUE) $(NAME) $(DEFAULT) || \
$(ECHO) $(RED) "[XX]" $(TEAL) $(NAME) $(DEFAULT)
clean :
@rm -f $(OBJ)
fclean : clean
@$(RM) $(NAME)
re : fclean all
.PHONNY : all clean fclean re
.cpp.o :
@$(CXX) $(CXXFLAGS) -c $< -o $@ && \
$(ECHO) $(YELLOW)[$(GREEN)OK$(YELLOW)] $(BLUE)$< $(DEFAULT) || \
$(ECHO) $(RED) "[XX]" $(TEAL) $< $(DEFAULT)