blob: 1b0cf1961663d3fad9ace6dc56f89b39d852a3e0 (
plain)
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
|
AM_CXXFLAGS = @ARCHFLAGS@ -I$(top_srcdir)/include -I$(top_builddir)/include
AM_CPPFLAGS = @ARCHFLAGS@ -I$(top_srcdir)/include -I$(top_builddir)/include
AM_CFLAGS = @ARCHFLAGS@ -I$(top_srcdir)/include -I$(top_builddir)/include
lib_LIBRARIES = libode.a
libode_a_CPPFLAGS = -O2
libode_a_CPPFLAGS += -fPIC
# Fake an executable in order to get a shared library
# Note the elegant and cunning way to trick Autotools to install a program
# in a lib directory. --Rodrigo
traplibdir=$(libdir)
EXEEXT=@so_ext@
traplib_PROGRAMS=libode
libode_SOURCES=
libode_DEPENDENCIES = libfast.a libode.a
libode_LDFLAGS= @SHARED_LDFLAGS@
if USE_SONAME
libode_LDFLAGS+=-Wl,-soname,@ODE_SONAME@
endif
libode_LDADD=$(libode_a_OBJECTS) $(libfast_a_OBJECTS)
if OPCODE
libode_DEPENDENCIES+= libOPCODE.a
libode_LDADD+=$(libOPCODE_a_OBJECTS)
endif
if GIMPACT
libode_DEPENDENCIES+= libGIMPACT.a
libode_LDADD+=$(libGIMPACT_a_OBJECTS)
endif
# convenience library to simulate per object cflags
noinst_LIBRARIES= libfast.a
libfast_a_CFLAGS= -O1
libfast_a_SOURCES= fastldlt.c fastltsolve.c fastdot.c fastlsolve.c
libfast_a_CFLAGS += -fPIC
libode_a_DEPENDENCIES = libfast.a
libode_a_LIBADD= $(libfast_a_OBJECTS)
libode_a_SOURCES = objects.h \
obstack.cpp \
collision_util.cpp \
obstack.h \
array.cpp \
collision_util.h \
ode.cpp \
array.h \
error.cpp \
odemath.cpp \
collision_kernel.cpp \
export-dif.cpp \
quickstep.cpp \
collision_kernel.h \
quickstep.h \
collision_quadtreespace.cpp \
rotation.cpp \
collision_space.cpp \
collision_space_internal.h \
collision_cylinder_box.cpp \
collision_cylinder_sphere.cpp \
collision_cylinder_plane.cpp \
sphere.cpp \
box.cpp \
capsule.cpp \
plane.cpp \
ray.cpp \
cylinder.cpp \
convex.cpp \
joint.cpp \
stack.h \
collision_std.h \
joint.h \
step.cpp \
collision_transform.cpp \
lcp.cpp \
step.h \
collision_transform.h \
lcp.h \
stepfast.cpp \
mass.cpp \
testing.cpp \
mat.cpp \
testing.h \
mat.h \
timer.cpp \
matrix.cpp \
util.cpp \
memory.cpp \
util.h \
misc.cpp \
heightfield.cpp \
heightfield.h
###################################
# G I M P A C T S T U F F
###################################
if GIMPACT
noinst_LIBRARIES+= libGIMPACT.a
libGIMPACT_a_CPPFLAGS= -O2 -fno-strict-aliasing -fPIC
libode_a_SOURCES+= collision_trimesh_gimpact.cpp
libGIMPACT_a_SOURCES = \
@TOPDIR@/GIMPACT/src/gim_boxpruning.cpp \
@TOPDIR@/GIMPACT/src/gim_contact.cpp \
@TOPDIR@/GIMPACT/src/gim_math.cpp \
@TOPDIR@/GIMPACT/src/gim_memory.cpp \
@TOPDIR@/GIMPACT/src/gim_tri_tri_overlap.cpp \
@TOPDIR@/GIMPACT/src/gim_trimesh.cpp \
@TOPDIR@/GIMPACT/src/gim_trimesh_capsule_collision.cpp \
@TOPDIR@/GIMPACT/src/gim_trimesh_ray_collision.cpp \
@TOPDIR@/GIMPACT/src/gim_trimesh_sphere_collision.cpp \
@TOPDIR@/GIMPACT/src/gim_trimesh_trimesh_collision.cpp \
@TOPDIR@/GIMPACT/src/gimpact.cpp
libode_a_DEPENDENCIES+=libGIMPACT.a
libode_a_LIBADD+= $(libGIMPACT_a_OBJECTS)
AM_CXXFLAGS += -I@TOPDIR@/GIMPACT/include -DdTRIMESH_ENABLED -DdTRIMESH_GIMPACT
AM_CFLAGS += -I@TOPDIR@/GIMPACT/include -DdTRIMESH_ENABLED -DdTRIMESH_GIMPACT
libode_a_SOURCES+= collision_trimesh_trimesh.cpp \
collision_trimesh_sphere.cpp \
collision_trimesh_ray.cpp \
collision_trimesh_opcode.cpp \
collision_trimesh_box.cpp \
collision_trimesh_ccylinder.cpp \
collision_trimesh_distance.cpp \
collision_trimesh_internal.h \
collision_cylinder_trimesh.cpp \
collision_trimesh_plane.cpp
endif
#################################
# O P C O D E S T U F F
#################################
if OPCODE
noinst_LIBRARIES+= libOPCODE.a
libOPCODE_a_CPPFLAGS= -O2 -fno-strict-aliasing -fPIC
libOPCODE_a_SOURCES= @TOPDIR@/OPCODE/OPC_AABBCollider.cpp \
@TOPDIR@/OPCODE/OPC_AABBTree.cpp \
@TOPDIR@/OPCODE/OPC_BaseModel.cpp \
@TOPDIR@/OPCODE/OPC_BoxPruning.cpp \
@TOPDIR@/OPCODE/OPC_Collider.cpp \
@TOPDIR@/OPCODE/OPC_Common.cpp \
@TOPDIR@/OPCODE/OPC_HybridModel.cpp \
@TOPDIR@/OPCODE/OPC_LSSCollider.cpp \
@TOPDIR@/OPCODE/OPC_MeshInterface.cpp \
@TOPDIR@/OPCODE/OPC_Model.cpp \
@TOPDIR@/OPCODE/OPC_OBBCollider.cpp \
@TOPDIR@/OPCODE/Opcode.cpp \
@TOPDIR@/OPCODE/OPC_OptimizedTree.cpp \
@TOPDIR@/OPCODE/OPC_Picking.cpp \
@TOPDIR@/OPCODE/OPC_PlanesCollider.cpp \
@TOPDIR@/OPCODE/OPC_RayCollider.cpp \
@TOPDIR@/OPCODE/OPC_SphereCollider.cpp \
@TOPDIR@/OPCODE/OPC_SweepAndPrune.cpp \
@TOPDIR@/OPCODE/OPC_TreeBuilders.cpp \
@TOPDIR@/OPCODE/OPC_TreeCollider.cpp \
@TOPDIR@/OPCODE/OPC_VolumeCollider.cpp \
@TOPDIR@/OPCODE/Ice/IceAABB.cpp \
@TOPDIR@/OPCODE/Ice/IceContainer.cpp \
@TOPDIR@/OPCODE/Ice/IceHPoint.cpp \
@TOPDIR@/OPCODE/Ice/IceIndexedTriangle.cpp \
@TOPDIR@/OPCODE/Ice/IceMatrix3x3.cpp \
@TOPDIR@/OPCODE/Ice/IceMatrix4x4.cpp \
@TOPDIR@/OPCODE/Ice/IceOBB.cpp \
@TOPDIR@/OPCODE/Ice/IcePlane.cpp \
@TOPDIR@/OPCODE/Ice/IcePoint.cpp \
@TOPDIR@/OPCODE/Ice/IceRandom.cpp \
@TOPDIR@/OPCODE/Ice/IceRay.cpp \
@TOPDIR@/OPCODE/Ice/IceRevisitedRadix.cpp \
@TOPDIR@/OPCODE/Ice/IceSegment.cpp \
@TOPDIR@/OPCODE/Ice/IceTriangle.cpp \
@TOPDIR@/OPCODE/Ice/IceUtils.cpp
libode_a_DEPENDENCIES+=libOPCODE.a
libode_a_LIBADD+= $(libOPCODE_a_OBJECTS)
AM_CXXFLAGS += -I@TOPDIR@/OPCODE -I@TOPDIR@/OPCODE/Ice -DdTRIMESH_ENABLED -DdTRIMESH_OPCODE
AM_CFLAGS += -I@TOPDIR@/OPCODE -I@TOPDIR@/OPCODE/Ice -DdTRIMESH_ENABLED -DdTRIMESH_OPCODE
libode_a_SOURCES+= collision_trimesh_trimesh.cpp \
collision_trimesh_sphere.cpp \
collision_trimesh_ray.cpp \
collision_trimesh_opcode.cpp \
collision_trimesh_box.cpp \
collision_trimesh_ccylinder.cpp \
collision_trimesh_distance.cpp \
collision_trimesh_internal.h \
collision_cylinder_trimesh.cpp \
collision_trimesh_plane.cpp
endif
|