-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
348 lines (325 loc) · 15.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
# Settings
CPP=g++
CC=gcc
DEBUG=true
OS=windows
# End Settings
# Ogre build settings found in src/include/OgreBuildSettings.h
CFLAGS= \
-Idependencies \
-Idependencies/Bullet \
-Idependencies/Bullet/ConvexDecomposition \
-Idependencies/OGRE/OgreMain/include \
-Idependencies/OgreBullet/Collisions/include \
-Idependencies/OgreBullet/Dynamics/include \
-Idependencies/fmod/include \
-Idependencies/Hydrax/include \
-Idependencies/lua/include \
-Idependencies/luabind/include \
-Idependencies/freetype/include \
-Idependencies/MyGUI/MyGUIEngine/include \
-Idependencies/MyGUI/Platforms/Ogre/OgrePlatform/include \
-Idependencies/OIS \
-Isrc/include \
-Wall \
-DMYGUI_USE_FREETYPE \
-DBOOST_ALL_NO_LIB
ifeq ($(DEBUG),true)
CFLAGS += -g -DLostMarblesDebug -O0
else
CFLAGS += -O3
endif
bulletobjects = \
dependencies/Bullet/BulletCollision/CollisionDispatch/btSimulationIslandManager.o
bulletconvexdecompositionobjects = \
dependencies/Bullet/ConvexDecomposition/bestfit.o \
dependencies/Bullet/ConvexDecomposition/bestfitobb.o \
dependencies/Bullet/ConvexDecomposition/cd_hull.o \
dependencies/Bullet/ConvexDecomposition/cd_wavefront.o \
dependencies/Bullet/ConvexDecomposition/concavity.o \
dependencies/Bullet/ConvexDecomposition/ConvexBuilder.o \
dependencies/Bullet/ConvexDecomposition/ConvexDecomposition.o \
dependencies/Bullet/ConvexDecomposition/fitsphere.o \
dependencies/Bullet/ConvexDecomposition/float_math.o \
dependencies/Bullet/ConvexDecomposition/meshvolume.o \
dependencies/Bullet/ConvexDecomposition/planetri.o \
dependencies/Bullet/ConvexDecomposition/raytri.o \
dependencies/Bullet/ConvexDecomposition/splitplane.o \
dependencies/Bullet/ConvexDecomposition/vlookup.o
ogrebulletobjects = \
dependencies/OgreBullet/Collisions/src/OgreBulletCollisionsObject.o \
dependencies/OgreBullet/Collisions/src/OgreBulletCollisionsObjectState.o \
dependencies/OgreBullet/Collisions/src/OgreBulletCollisionsPrecompiled.o \
dependencies/OgreBullet/Collisions/src/OgreBulletCollisionsRay.o \
dependencies/OgreBullet/Collisions/src/OgreBulletCollisionsShape.o \
dependencies/OgreBullet/Collisions/src/OgreBulletCollisionsWorld.o \
dependencies/OgreBullet/Collisions/src/Debug/OgreBulletCollisionsDebugContact.o \
dependencies/OgreBullet/Collisions/src/Debug/OgreBulletCollisionsDebugDrawer.o \
dependencies/OgreBullet/Collisions/src/Debug/OgreBulletCollisionsDebugLines.o \
dependencies/OgreBullet/Collisions/src/Debug/OgreBulletCollisionsDebugShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsBoxShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsCapsuleShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsCompoundShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsConeShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsConvexHullShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsCylinderShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsGImpactShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsMinkowskiSumShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsMultiSphereShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsSphereShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsStaticPlaneShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsTriangleShape.o \
dependencies/OgreBullet/Collisions/src/Shapes/OgreBulletCollisionsTrimeshShape.o \
dependencies/OgreBullet/Collisions/src/Utils/OgreBulletCollisionsMeshToShapeConverter.o \
dependencies/OgreBullet/Dynamics/src/OgreBulletDynamicsConstraint.o \
dependencies/OgreBullet/Dynamics/src/OgreBulletDynamicsObjectState.o \
dependencies/OgreBullet/Dynamics/src/OgreBulletDynamicsPrecompiled.o \
dependencies/OgreBullet/Dynamics/src/OgreBulletDynamicsRigidBody.o \
dependencies/OgreBullet/Dynamics/src/OgreBulletDynamicsWorld.o \
dependencies/OgreBullet/Dynamics/src/Prefab/OgreBulletDynamicsRagDoll.o \
dependencies/OgreBullet/Dynamics/src/Constraints/OgreBulletDynamics6DofConstraint.o \
dependencies/OgreBullet/Dynamics/src/Constraints/OgreBulletDynamics6DofSpringConstraint.o \
dependencies/OgreBullet/Dynamics/src/Constraints/OgreBulletDynamicsConeTwistConstraint.o \
dependencies/OgreBullet/Dynamics/src/Constraints/OgreBulletDynamicsHingeConstraint.o \
dependencies/OgreBullet/Dynamics/src/Constraints/OgreBulletDynamicsPoint2pointConstraint.o \
dependencies/OgreBullet/Dynamics/src/Constraints/OgreBulletDynamicsRaycastVehicle.o
luabindobjects = \
dependencies/luabind/src/class.o \
dependencies/luabind/src/class_info.o \
dependencies/luabind/src/class_registry.o \
dependencies/luabind/src/class_rep.o \
dependencies/luabind/src/create_class.o \
dependencies/luabind/src/error.o \
dependencies/luabind/src/exception_handler.o \
dependencies/luabind/src/function.o \
dependencies/luabind/src/inheritance.o \
dependencies/luabind/src/link_compatibility.o \
dependencies/luabind/src/object_rep.o \
dependencies/luabind/src/open.o \
dependencies/luabind/src/pcall.o \
dependencies/luabind/src/scope.o \
dependencies/luabind/src/stack_content_by_name.o \
dependencies/luabind/src/weak_ref.o \
dependencies/luabind/src/wrapper_base.o
luaobjects = \
dependencies/lua/src/lapi.o \
dependencies/lua/src/lauxlib.o \
dependencies/lua/src/lbaselib.o \
dependencies/lua/src/lcode.o \
dependencies/lua/src/ldblib.o \
dependencies/lua/src/ldebug.o \
dependencies/lua/src/ldo.o \
dependencies/lua/src/ldump.o \
dependencies/lua/src/lfunc.o \
dependencies/lua/src/lgc.o \
dependencies/lua/src/linit.o \
dependencies/lua/src/liolib.o \
dependencies/lua/src/llex.o \
dependencies/lua/src/lmathlib.o \
dependencies/lua/src/lmem.o \
dependencies/lua/src/loadlib.o \
dependencies/lua/src/lobject.o \
dependencies/lua/src/lopcodes.o \
dependencies/lua/src/loslib.o \
dependencies/lua/src/lparser.o \
dependencies/lua/src/lstate.o \
dependencies/lua/src/lstring.o \
dependencies/lua/src/lstrlib.o \
dependencies/lua/src/ltable.o \
dependencies/lua/src/ltablib.o \
dependencies/lua/src/ltm.o \
dependencies/lua/src/lundump.o \
dependencies/lua/src/lvm.o \
dependencies/lua/src/lzio.o \
dependencies/lua/src/print.o
freetypeobjects = \
dependencies/freetype/src/base/ftsystem.o \
dependencies/freetype/src/base/ftinit.o \
dependencies/freetype/src/base/ftdebug.o \
dependencies/freetype/src/base/ftbase.o \
dependencies/freetype/src/base/ftbbox.o \
dependencies/freetype/src/base/ftglyph.o \
dependencies/freetype/src/base/ftbdf.o \
dependencies/freetype/src/base/ftbitmap.o \
dependencies/freetype/src/base/ftcid.o \
dependencies/freetype/src/base/ftfstype.o \
dependencies/freetype/src/base/ftgasp.o \
dependencies/freetype/src/base/ftgxval.o \
dependencies/freetype/src/base/ftlcdfil.o \
dependencies/freetype/src/base/ftmm.o \
dependencies/freetype/src/base/ftotval.o \
dependencies/freetype/src/base/ftpatent.o \
dependencies/freetype/src/base/ftpfr.o \
dependencies/freetype/src/base/ftstroke.o \
dependencies/freetype/src/base/ftsynth.o \
dependencies/freetype/src/base/fttype1.o \
dependencies/freetype/src/base/ftwinfnt.o \
dependencies/freetype/src/base/ftxf86.o \
dependencies/freetype/src/truetype/truetype.o \
dependencies/freetype/src/smooth/smooth.o
boostfilesystemobjects = \
dependencies/boost/filesystem/v3/src/codecvt_error_category.o \
dependencies/boost/filesystem/v3/src/operations.o \
dependencies/boost/filesystem/v3/src/path.o \
dependencies/boost/filesystem/v3/src/path_traits.o \
dependencies/boost/filesystem/v3/src/portability.o \
dependencies/boost/filesystem/v3/src/unique_path.o \
dependencies/boost/filesystem/v3/src/utf8_codecvt_facet.o \
dependencies/boost/filesystem/v3/src/windows_file_codecvt.o \
dependencies/boost/system/error_code.o
myguiengineobjects = \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Button.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Canvas.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ComboBox.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_DDContainer.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Edit.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_HScroll.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ItemBox.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_List.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ListBox.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ListCtrl.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_MenuBar.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_MenuCtrl.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_MenuItem.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Message.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_MultiList.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_PopupMenu.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Progress.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ScrollView.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_StaticImage.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_StaticText.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Tab.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_TabItem.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_VScroll.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Widget.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Window.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_EditText.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_MainSkin.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_RawRect.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_RotatingSkin.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_SimpleText.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_SubSkin.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_TileRect.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LayerItem.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LayerNode.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_OverlappedLayer.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_RenderItem.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_SharedLayer.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_SharedLayerNode.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ActionController.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ControllerEdgeHide.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ControllerFadeAlpha.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ControllerPosition.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Exception.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Precompiled.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_IWidgetCreator.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ScrollViewBase.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceImageSet.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceImageSetPointer.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceManualFont.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceManualPointer.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceSkin.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceTrueTypeFont.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_MaskPickInfo.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Any.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Colour.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ClipboardManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ControllerManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_DataManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_DynLibManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_FactoryManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_FontManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Gui.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_InputManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LanguageManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LayerManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LayoutManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_PluginManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_PointerManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_RenderManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_ResourceManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_SkinManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_SubWidgetManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_WidgetManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_DataFileStream.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_DataStream.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_DynLib.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Guid.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_RenderOut.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_TextIterator.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_TextureUtility.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_Timer.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_XmlDocument.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LogManager.o \
dependencies/MyGUI/MyGUIEngine/src/MyGUI_LogStream.o
myguiplatformobjects = \
dependencies/MyGUI/Platforms/Ogre/OgrePlatform/src/MyGUI_OgreDataManager.o \
dependencies/MyGUI/Platforms/Ogre/OgrePlatform/src/MyGUI_OgreDataStream.o \
dependencies/MyGUI/Platforms/Ogre/OgrePlatform/src/MyGUI_OgreRenderManager.o \
dependencies/MyGUI/Platforms/Ogre/OgrePlatform/src/MyGUI_OgreTexture.o \
dependencies/MyGUI/Platforms/Ogre/OgrePlatform/src/MyGUI_OgreRTTexture.o \
dependencies/MyGUI/Platforms/Ogre/OgrePlatform/src/MyGUI_OgreVertexBuffer.o
lostmarblesobjects = \
src/main.o \
src/actors/BouncePowerUp.o \
src/actors/CollectibleMarble.o \
src/actors/CompetitorMarble.o \
src/actors/FloatPowerUp.o \
src/actors/HealthPowerUp.o \
src/actors/HelpPowerUp.o \
src/actors/SpeedPowerUp.o \
src/actors/StickyPowerUp.o \
src/actors/TeleportPowerUp.o \
src/behaviors/LostBehavior.o \
src/behaviors/PlayerBehavior.o \
src/behaviors/RivalBehavior.o \
src/helpers/OverlayFader.o \
src/managers/DotLevelLoader.o \
src/managers/GameManager.o \
src/managers/InputManager.o \
src/managers/LuaBinding.o \
src/managers/SoundManager.o \
src/managers/TextRenderer.o \
src/powerups/BouncePowerUpBehavior.o \
src/powerups/FloatPowerUpBehavior.o \
src/powerups/SpeedPowerUpBehavior.o \
src/powerups/StickyPowerUpBehavior.o \
src/powerups/UnderwaterBehavior.o \
src/states/BlankState.o \
src/states/LogoState.o \
src/states/MainMenuState.o \
src/states/PauseState.o \
src/states/PlayState.o \
src/states/QuitGameState.o \
src/states/WinState.o
dependencies = \
$(bulletobjects) \
$(bulletconvexdecompositionobjects) \
$(ogrebulletobjects) \
$(luabindobjects) \
$(myguiengineobjects) \
$(myguiplatformobjects) \
$(boostfilesystemobjects)
cdependencies = \
$(luaobjects)
ifeq ($(OS),windows)
RemoveObjectFiles=Clean.bat
LOSTMARBLESEXE=bin/LostMarbles.exe
LDFLAGS=-Llib/prebuilt/windows-x86 -mwindows -lmingw32 -lwinmm -lole32
else
RemoveObjectFiles=rm -rf $(lostmarblesobjects) $(dependencies) $(cdependencies)
LOSTMARBLESEXE=bin/LostMarbles
endif
LDFLAGS += -Lbin -lOIS -lOgreMain -lPlugin_ParticleFX -lRenderSystem_Direct3D9 -lRenderSystem_GL -lfmodex -lBulletCollision -lBulletDynamics -lLinearMath -lfreetype
all: $(LOSTMARBLESEXE)
$(LOSTMARBLESEXE): $(lostmarblesobjects) $(dependencies) $(cdependencies)
$(CPP) $(CFLAGS) $(dependencies) $(cdependencies) $(lostmarblesobjects) $(LDFLAGS) -o $@
$(lostmarblesobjects): %.o: %.cpp
$(CPP) $(CFLAGS) -c $< -o $@
$(dependencies): %.o: %.cpp
$(CPP) $(CFLAGS) -c $< -o $@
$(cdependencies): %.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
.PHONY : clean
clean :
$(RemoveObjectFiles)