forked from golems/amino
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile-demo.am
243 lines (169 loc) · 9.78 KB
/
Makefile-demo.am
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
if BUILD_DEMOS
BUILT_SCENES =
## Compilation and Linking flags
#
# the GL_LIBS, GL_CFLAGS, SDL_LIBS, etc. are determined by pkg-config
# during configuration
DEMO_LIBS = libamino.la libamino-gl.la $(GL_LIBS) $(SDL2_LIBS) $(GLEW_LIBS)
DEMO_CFLAGS = $(SDL2_CFLAGS) $(GL_CFLAGS)
PLANNING_LIBS = libamino-planning.la libamino-collision.la
# call aarxc with paths set to look in the build and source trees
AARXC_DEP = aarx.core $(top_srcdir)/share/aarxc
AARXC = $(top_builddir)/aarxc
###############
## SIMPLE RX ##
###############
EXTRA_DIST += \
demo/simple-rx/scene/scene.robray \
demo/simple-rx/scene/table.robray \
demo/simple-rx/scene/table_class.robray \
demo/simple-rx/scene/table_include.robray \
demo/simple-rx/scene/table_include_class.robray
BUILT_SCENES += demo/simple-rx/scene/scene.c demo/simple-rx/scene/scene.c.h
demo/simple-rx/scene/scene.c: $(top_srcdir)/demo/simple-rx/scene/scene.robray $(AARXC_DEP)
$(AARXC) $(top_srcdir)/demo/simple-rx/scene/scene.robray -o demo/simple-rx/scene/scene.c
demo/simple-rx/scene/scene.c.h: demo/simple-rx/scene/scene.c
BUILT_SCENES += demo/simple-rx/scene/table.c demo/simple-rx/scene/table.c.h
demo/simple-rx/scene/table.c: $(top_srcdir)/demo/simple-rx/scene/table.robray $(AARXC_DEP)
$(AARXC) $(top_srcdir)/demo/simple-rx/scene/table.robray -o demo/simple-rx/scene/table.c -n table
BUILT_SCENES += demo/simple-rx/scene/table_class.c demo/simple-rx/scene/table_class.c.h
demo/simple-rx/scene/table_class.c: $(top_srcdir)/demo/simple-rx/scene/table_class.robray $(AARXC_DEP)
$(AARXC) $(top_srcdir)/demo/simple-rx/scene/table_class.robray -o demo/simple-rx/scene/table_class.c -n table_class
BUILT_SCENES += demo/simple-rx/scene/table_include.c demo/simple-rx/scene/table_include.c.h
demo/simple-rx/scene/table_include.c: $(top_srcdir)/demo/simple-rx/scene/table_include.robray $(top_srcdir)/demo/simple-rx/scene/table_include_class.robray $(AARXC_DEP)
$(AARXC) $(top_srcdir)/demo/simple-rx/scene/table_include.robray -o demo/simple-rx/scene/table_include.c -n table_include
noinst_LTLIBRARIES += demo/simple-rx/libsimplerx.la
nodist_demo_simple_rx_libsimplerx_la_SOURCES = \
demo/simple-rx/scene/scene.c \
demo/simple-rx/scene/table.c \
demo/simple-rx/scene/table_class.c \
demo/simple-rx/scene/table_include.c
lib_LTLIBRARIES += demo/simple-rx/libamino-simple-demo.la
demo_simple_rx_libamino_simple_demo_la_SOURCES =
demo_simple_rx_libamino_simple_demo_la_LIBADD = demo/simple-rx/libsimplerx.la
demo_simple_rx_libamino_simple_demo_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
noinst_PROGRAMS += demo/simple-rx/simple-scenefile
demo_simple_rx_simple_scenefile_SOURCES = demo/simple-rx/simple-scenefile.c
demo_simple_rx_simple_scenefile_CFLAGS = $(DEMO_CFLAGS) -I./demo/simple-rx
demo_simple_rx_simple_scenefile_LDADD = $(DEMO_LIBS) demo/simple-rx/libsimplerx.la
# demo/simple-rx/simple-scenefile.$(OBJEXT): demo/simple-rx/scene/scene.c.h
# demo/simple-rx/demo_simple_rx_simple_scenefile-simple-scenefile.$(OBJEXT): demo/simple-rx/scene/scene.c.h
noinst_PROGRAMS += demo/simple-rx/simple-procedural
demo_simple_rx_simple_procedural_SOURCES = demo/simple-rx/simple-procedural.c
demo_simple_rx_simple_procedural_CFLAGS = $(DEMO_CFLAGS)
demo_simple_rx_simple_procedural_LDADD = $(DEMO_LIBS)
noinst_PROGRAMS += demo/simple-rx/simple-thread
demo_simple_rx_simple_thread_SOURCES = demo/simple-rx/simple-thread.c
demo_simple_rx_simple_thread_CFLAGS = $(DEMO_CFLAGS)
demo_simple_rx_simple_thread_LDADD = $(DEMO_LIBS)
# noinst_PROGRAMS += demo/simple-rx/simple-plugin
# demo_simple_rx_simple_plugin_SOURCES = demo/simple-rx/simple-plugin.c
# demo_simple_rx_simple_plugin_CFLAGS = $(DEMO_CFLAGS)
# demo_simple_rx_simple_plugin_LDADD = $(DEMO_LIBS)
############
## Baxter ##
############
if BUILD_DEMO_BAXTER
demo/urdf/baxter/baxter-model.c: aarx.core
$(AARXC) 'package://baxter_description/urdf/baxter.urdf' \
-o demo/urdf/baxter/baxter-model.c -n "baxter"
demo/urdf/baxter/baxter-model.c.h: demo/urdf/baxter/baxter-model.c
BUILT_SCENES += demo/urdf/baxter/baxter-model.c demo/urdf/baxter/baxter-model.c.h
noinst_LTLIBRARIES += demo/urdf/baxter/libbaxter.la
nodist_demo_urdf_baxter_libbaxter_la_SOURCES = demo/urdf/baxter/baxter-model.c
noinst_LTLIBRARIES += demo/urdf/baxter/libbaxter_demo.la
demo_urdf_baxter_libbaxter_demo_la_SOURCES = demo/urdf/baxter/baxter-demo.c
demo_urdf_baxter_libbaxter_demo_la_CFLAGS = $(DEMO_CFLAGS)
lib_LTLIBRARIES += demo/urdf/baxter/libamino_baxter.la
demo_urdf_baxter_libamino_baxter_la_SOURCES =
demo_urdf_baxter_libamino_baxter_la_LIBADD = demo/urdf/baxter/libbaxter.la
demo_urdf_baxter_libamino_baxter_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
noinst_PROGRAMS += demo/urdf/baxter/baxter-simple
demo_urdf_baxter_baxter_simple_SOURCES = demo/urdf/baxter/baxter-simple.c
demo_urdf_baxter_baxter_simple_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_simple_LDADD = demo/urdf/baxter/libbaxter_demo.la $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
noinst_PROGRAMS += demo/urdf/baxter/baxter-ik
demo_urdf_baxter_baxter_ik_SOURCES = demo/urdf/baxter/baxter-ik.c
demo_urdf_baxter_baxter_ik_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_ik_LDADD = demo/urdf/baxter/libbaxter_demo.la $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
noinst_PROGRAMS += demo/urdf/baxter/baxter-wksp
demo_urdf_baxter_baxter_wksp_SOURCES = demo/urdf/baxter/baxter-wksp.c
demo_urdf_baxter_baxter_wksp_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_wksp_LDADD = demo/urdf/baxter/libbaxter_demo.la $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
noinst_PROGRAMS += demo/urdf/baxter/baxter-collision
demo_urdf_baxter_baxter_collision_SOURCES = demo/urdf/baxter/baxter-collision.c
demo_urdf_baxter_baxter_collision_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_collision_LDADD = demo/urdf/baxter/libbaxter_demo.la $(PLANNING_LIBS) $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
noinst_PROGRAMS += demo/urdf/baxter/baxter-ompl
demo_urdf_baxter_baxter_ompl_SOURCES = demo/urdf/baxter/baxter-ompl.c
demo_urdf_baxter_baxter_ompl_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_ompl_LDADD = demo/urdf/baxter/libbaxter_demo.la $(PLANNING_LIBS) $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
noinst_PROGRAMS += demo/urdf/baxter/baxter-ompl-workspace
demo_urdf_baxter_baxter_ompl_workspace_SOURCES = demo/urdf/baxter/baxter-ompl-workspace.c
demo_urdf_baxter_baxter_ompl_workspace_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_ompl_workspace_LDADD = demo/urdf/baxter/libbaxter_demo.la $(PLANNING_LIBS) $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
noinst_PROGRAMS += demo/urdf/baxter/baxter-ompl-sequence
demo_urdf_baxter_baxter_ompl_sequence_SOURCES = demo/urdf/baxter/baxter-ompl-sequence.c
demo_urdf_baxter_baxter_ompl_sequence_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_baxter_baxter_ompl_sequence_LDADD = demo/urdf/baxter/libbaxter_demo.la $(PLANNING_LIBS) $(DEMO_LIBS) demo/urdf/baxter/libbaxter.la
endif # BUILD_DEMO_BAXTER
if BUILD_DEMO_UR10
demo/urdf/ur/ur10_robot.urdf:
rosrun xacro xacro.py \
`rospack find ur_description`/urdf/ur10_robot.urdf.xacro \
-o demo/urdf/ur/ur10_robot.urdf
demo/urdf/ur/ur10-model.c: demo/urdf/ur/ur10_robot.urdf aarx.core
$(AARXC) demo/urdf/ur/ur10_robot.urdf -o demo/urdf/ur/ur10-model.c -n "ur10"
BUILT_SCENES += demo/urdf/ur/ur10-model.c demo/urdf/ur/ur10-model.c
lib_LTLIBRARIES += demo/urdf/ur/libamino_ur.la
nodist_demo_urdf_ur_libamino_ur_la_SOURCES = demo/urdf/ur/ur10-model.c
endif # BUILD_DEMO_UR10
if BUILD_DEMO_SCHUNK
demo/urdf/schunk/lwa4d.urdf:
rosrun xacro xacro.py demo/urdf/schunk/lwa4d_robot.urdf.xacro \
-o demo/urdf/schunk/lwa4d.urdf
demo/urdf/schunk/lwa4d-model.c: demo/urdf/schunk/lwa4d.urdf aarx.core
$(AARXC) demo/urdf/schunk/lwa4d.urdf \
-o demo/urdf/schunk/lwa4d-model.c -n "lwa4d"
demo/urdf/schunk/lwa4d-model.c.h: demo/urdf/schunk/lwa4d-model.c
BUILT_SCENES += demo/urdf/schunk/lwa4d-model.c.h demo/urdf/schunk/lwa4d-model.c
lib_LTLIBRARIES += demo/urdf/schunk/libamino_schunk.la
nodist_demo_urdf_schunk_libamino_schunk_la_SOURCES = demo/urdf/schunk/lwa4d-model.c
demo_urdf_schunk_libamino_schunk_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
endif # BUILD_DEMO_SCHUNK
if BUILD_DEMO_MICO
demo/urdf/mico/mico_robot.urdf:
rosrun xacro xacro.py demo/urdf/mico/mico_robot.urdf.xacro \
-o demo/urdf/mico/mico_robot.urdf
demo/urdf/mico/mico-model.c: demo/urdf/mico/mico_robot.urdf aarx.core
$(AARXC) demo/urdf/mico/mico_robot.urdf \
-o demo/urdf/mico/mico-model.c -n "mico"
BUILT_SCENES += demo/urdf/mico/mico-model.c.h demo/urdf/mico/mico-model.c
lib_LTLIBRARIES += demo/urdf/mico/libamino_mico.la
nodist_demo_urdf_mico_libamino_mico_la_SOURCES = demo/urdf/mico/mico-model.c
demo_urdf_mico_libamino_mico_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
endif # BUILD_DEMO_MICO
if BUILD_DEMO_JACO
demo/urdf/jaco/jaco_robot.urdf:
rosrun xacro xacro.py demo/urdf/jaco/jaco_robot.urdf.xacro \
-o demo/urdf/jaco/jaco_robot.urdf
demo/urdf/jaco/jaco-model.c: demo/urdf/jaco/jaco_robot.urdf aarx.core
$(AARXC) demo/urdf/jaco/jaco_robot.urdf \
-o demo/urdf/jaco/jaco-model.c -n "jaco"
demo/urdf/jaco/jaco-model.c.h: demo/urdf/jaco/jaco-model.c
BUILT_SCENES += demo/urdf/jaco/jaco-model.c demo/urdf/jaco/jaco-model.c
noinst_LTLIBRARIES += demo/urdf/jaco/libjaco.la
nodist_demo_urdf_jaco_libjaco_la_SOURCES = demo/urdf/jaco/jaco-model.c
lib_LTLIBRARIES += demo/urdf/jaco/libamino_jaco.la
demo_urdf_jaco_libamino_jaco_la_SOURCES =
demo_urdf_jaco_libamino_jaco_la_LIBADD = demo/urdf/jaco/libjaco.la
demo_urdf_jaco_libamino_jaco_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
noinst_PROGRAMS += demo/urdf/jaco/jaco-ompl
demo_urdf_jaco_jaco_ompl_SOURCES = demo/urdf/jaco/jaco-ompl.c
demo_urdf_jaco_jaco_ompl_CFLAGS = $(DEMO_CFLAGS)
demo_urdf_jaco_jaco_ompl_LDADD = $(PLANNING_LIBS) $(DEMO_LIBS) demo/urdf/jaco/libjaco.la
demo/urdf/jaco/jaco-ompl.$(OBJEXT): demo/urdf/jaco/jaco-model.c.h
endif # BUILD_DEMO_JACO
## Extra ##
CLEAN_LOCAL_FILES += $(BUILT_SCENES)
endif # BUILD_DEMOS