This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
132 lines (122 loc) · 4.38 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
CPP_FLAGS=-std=c++1y -stdlib=libc++ -O3 -Wall -DDRASH_DEBUG
INCLUDES=-I3rd
CC=clang++
LIBS=-lrt -lGL -lSDL -lGLEW -lSDL_image -lopenal -lvorbis -lvorbisfile -lc++abi -lpthread
EXECUTABLE=drash
SOURCES += \
src/ui/uiwidget.cpp \
src/ui/uisystem.cpp \
src/ui/uislider.cpp \
src/ui/uicontrol.cpp \
src/ui/uibutton.cpp \
src/test/test5.cpp \
src/test/test4.cpp \
src/test/test3.cpp \
src/test/test2.cpp \
src/test/test1.cpp \
src/test/test.cpp \
src/scene/geometrymanager.cpp \
src/players/playerssystem.cpp \
src/scene/sceneobject.cpp \
src/scene/scene.cpp \
src/players/player.cpp \
src/scene/figure.cpp \
src/misc/ray.cpp \
src/misc/plane.cpp \
src/misc/matrix4.cpp \
src/greng/renderer.cpp \
src/greng/meshmanager.cpp \
src/diag/timer.cpp \
src/diag/logger.cpp \
src/greng/camera.cpp \
src/app/appeventsystem.cpp \
src/app/appeventprocessor.cpp \
src/app/appeventcombination.cpp \
src/app/appevent.cpp \
src/app/app.cpp \
src/sdl/main.cpp \
src/greng/loadmeshobj.cpp \
src/greng/texturemanager.cpp \
src/greng/framebuffermanager.cpp \
src/greng/vertexshadermanager.cpp \
src/greng/fragmentshadermanager.cpp \
src/greng/shaderprogrammanager.cpp \
src/test/test6.cpp \
src/misc/vec2.cpp \
src/scene/joint.cpp \
src/test/test7.cpp \
src/greng/cameramanager.cpp \
src/debugrenderer/debugrenderer.cpp \
src/misc/moveablepoint.cpp \
src/levelmanager/leveldesc.cpp \
src/levelmanager/levelmanager.cpp \
src/test/test8.cpp \
src/misc/rotationablepoint.cpp \
src/test/test9.cpp \
src/greng/greng.cpp \
src/test/test10.cpp \
src/test/test11.cpp \
src/test/test12.cpp \
src/test/test13.cpp \
src/greng/spotlight.cpp \
3rd/Box2D/Collision/b2BroadPhase.cpp \
3rd/Box2D/Collision/b2CollideCircle.cpp \
3rd/Box2D/Collision/b2CollideEdge.cpp \
3rd/Box2D/Collision/b2CollidePolygon.cpp \
3rd/Box2D/Collision/b2Collision.cpp \
3rd/Box2D/Collision/b2Distance.cpp \
3rd/Box2D/Collision/b2DynamicTree.cpp \
3rd/Box2D/Collision/b2TimeOfImpact.cpp \
3rd/Box2D/Collision/Shapes/b2ChainShape.cpp \
3rd/Box2D/Collision/Shapes/b2CircleShape.cpp \
3rd/Box2D/Collision/Shapes/b2EdgeShape.cpp \
3rd/Box2D/Collision/Shapes/b2PolygonShape.cpp \
3rd/Box2D/Common/b2BlockAllocator.cpp \
3rd/Box2D/Common/b2Draw.cpp \
3rd/Box2D/Common/b2Math.cpp \
3rd/Box2D/Common/b2Settings.cpp \
3rd/Box2D/Common/b2StackAllocator.cpp \
3rd/Box2D/Common/b2Timer.cpp \
3rd/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.cpp \
3rd/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.cpp \
3rd/Box2D/Dynamics/Contacts/b2CircleContact.cpp \
3rd/Box2D/Dynamics/Contacts/b2Contact.cpp \
3rd/Box2D/Dynamics/Contacts/b2ContactSolver.cpp \
3rd/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.cpp \
3rd/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp \
3rd/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.cpp \
3rd/Box2D/Dynamics/Contacts/b2PolygonContact.cpp \
3rd/Box2D/Dynamics/Joints/b2DistanceJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2FrictionJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2GearJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2Joint.cpp \
3rd/Box2D/Dynamics/Joints/b2MotorJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2MouseJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2PrismaticJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2PulleyJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2RevoluteJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2RopeJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2WeldJoint.cpp \
3rd/Box2D/Dynamics/Joints/b2WheelJoint.cpp \
3rd/Box2D/Dynamics/b2Body.cpp \
3rd/Box2D/Dynamics/b2ContactManager.cpp \
3rd/Box2D/Dynamics/b2Fixture.cpp \
3rd/Box2D/Dynamics/b2Island.cpp \
3rd/Box2D/Dynamics/b2World.cpp \
3rd/Box2D/Dynamics/b2WorldCallbacks.cpp \
3rd/Box2D/Rope/b2Rope.cpp \
src/trash/alsound.cpp \
src/misc/dimensions.cpp \
src/misc/screenshaker.cpp
OBJECTS=${SOURCES:.cpp=.o}
all: $(SOURCES) $(EXECUTABLE)
clean:
find src -type f -name *.o -exec rm {} \;
$(EXECUTABLE): $(OBJECTS)
${CC} ${CPP_FLAGS} ${LIBS} ${OBJECTS} -o ${EXECUTABLE}
.cpp.o:
${CC} ${CPP_FLAGS} ${INCLUDES} $< -c -o $@
check-syntax:
${CC} ${CPP_FLAGS} ${INCLUDES} -fsyntax-only -fno-color-diagnostics ${CHK_SOURCES}
print-cflags:
echo ${CPP_FLAGS} ${INCLUDES}