-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.am
452 lines (411 loc) · 12.9 KB
/
Makefile.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
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
SUBDIRS = . src/interfaces/sac4snet
# common flags
AM_CPPFLAGS = -I$(top_srcdir)/include
# stuff that gets installed
snetstuffdir = $(pkglibdir)
pkgdata_DATA = \
src/snet.mkf \
snet-config.mkf
EXTRA_DIST = src/snet.mkf
snetstuff_SCRIPTS = \
libtool compile_cmd link_cmd
pkglib_LTLIBRARIES = \
libsnetutil.la \
libruntimestream.la \
libfrontrt.la \
libfrontnodist.la \
libC4SNet.la \
libC4SNetc.la \
libtbpthread.la \
libdistribnodist.la
pkginclude_HEADERS = \
src/interfaces/c4snet/C4SNet.h \
src/interfaces/c4snet/C4SNetc.h \
include/atomiccnt.h \
include/bool.h \
include/constants.h \
include/debug.h \
include/distribution.h \
include/entities.h \
include/expression.h \
include/filter.h \
include/handle.h \
include/info.h \
include/interface.h \
include/interface_functions.h \
include/label.h \
include/list-template.h \
include/list-template.c \
include/list.h \
include/locvec.h \
include/map-template.h \
include/map-template.c \
include/map.h \
include/memfun.h \
include/metadata.h \
include/moninfo.h \
include/networkinterface.h \
include/observers.h \
include/out.h \
include/record.h \
include/snetentities.h \
include/snettypes.h \
include/stream.h \
include/threading.h \
include/type.h \
include/variant.h
# How to build the stuff
libsnetutil_la_SOURCES = \
src/util/core/memfun.c \
src/util/metadata/metadata.c
libsnetutil_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/src/include
libruntimestream_la_SOURCES = \
src/runtime/common/expression.c \
src/runtime/common/info.c \
src/runtime/common/list.c \
src/runtime/common/map.c \
src/runtime/common/moninfo.c \
src/runtime/common/record.c \
src/runtime/common/variant.c \
src/runtime/stream/utils/bitmap.c \
src/runtime/stream/utils/bitmap.h \
src/runtime/stream/utils/debug.c \
src/runtime/stream/utils/debugcounters.c \
src/runtime/stream/utils/debugcounters.h \
src/runtime/stream/utils/debugtime.c \
src/runtime/stream/utils/debugtime.h \
src/runtime/stream/utils/hashtab.c \
src/runtime/stream/utils/hashtab.h \
src/runtime/stream/utils/hashtable.c \
src/runtime/stream/utils/hashtable.h \
src/runtime/stream/utils/locvec.c \
src/runtime/stream/utils/queue.c \
src/runtime/stream/utils/queue.h \
src/runtime/stream/shared/handle.c \
src/runtime/stream/shared/handle_p.h \
src/runtime/stream/entity/alias.c \
src/runtime/stream/entity/box.c \
src/runtime/stream/entity/collector.c \
src/runtime/stream/entity/collector.h \
src/runtime/stream/entity/entities.c \
src/runtime/stream/entity/feedback.c \
src/runtime/stream/entity/feednond.c \
src/runtime/stream/entity/filter.c \
src/runtime/stream/entity/out.c \
src/runtime/stream/entity/parallel.c \
src/runtime/stream/entity/serial.c \
src/runtime/stream/entity/split.c \
src/runtime/stream/entity/star.c \
src/runtime/stream/entity/syncro.c \
src/runtime/stream/entity/tertsrun.c \
src/runtime/stream/observer/observers.c \
src/runtime/stream/langif/interface_functions.c \
src/runtime/stream/netif/interface.c \
src/runtime/stream/netif/input.c \
src/runtime/stream/netif/input.h \
src/runtime/stream/netif/output.c \
src/runtime/stream/netif/output.h \
src/runtime/stream/netif/label.c \
src/runtime/stream/netif/networkinterface.c \
src/runtime/stream/netif/version.c \
src/runtime/stream/netif/parserutils.h \
src/runtime/stream/netif/parser.y \
src/runtime/stream/netif/lexer.l
libruntimestream_la_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(srcdir)/src/runtime/stream/utils \
-I$(srcdir)/src/runtime/stream/shared \
-I$(srcdir)/src/runtime/stream/observer \
-I$(srcdir)/src/runtime/stream/netif
libfrontrt_la_SOURCES = \
src/runtime/common/expression.c \
src/runtime/common/info.c \
src/runtime/common/list.c \
src/runtime/common/map.c \
src/runtime/common/moninfo.c \
src/runtime/common/record.c \
src/runtime/common/variant.c \
src/runtime/stream/utils/bitmap.c \
src/runtime/stream/utils/bitmap.h \
src/runtime/stream/utils/debug.c \
src/runtime/stream/utils/debugcounters.c \
src/runtime/stream/utils/debugcounters.h \
src/runtime/stream/utils/debugtime.c \
src/runtime/stream/utils/debugtime.h \
src/runtime/stream/utils/hashtab.c \
src/runtime/stream/utils/hashtab.h \
src/runtime/stream/utils/locvec.c \
src/runtime/stream/shared/handle.c \
src/runtime/stream/shared/handle_p.h \
src/runtime/stream/entity/alias.c \
src/runtime/stream/entity/entities.c \
src/runtime/stream/entity/out.c \
src/runtime/stream/langif/interface_functions.c \
src/runtime/stream/netif/interface.c \
src/runtime/stream/netif/label.c \
src/runtime/stream/netif/networkinterface.c \
src/runtime/stream/netif/version.c \
src/runtime/stream/netif/parserutils.h \
src/runtime/stream/netif/parser.y \
src/runtime/stream/netif/lexer.l \
src/runtime/front/detref.h \
src/runtime/front/frontrun.c \
src/runtime/front/node.c \
src/runtime/front/node.h \
src/runtime/front/node-proto.h \
src/runtime/front/trace.c \
src/runtime/front/trace.h \
src/runtime/front/xbox.c \
src/runtime/front/xcoll.c \
src/runtime/front/xdet.c \
src/runtime/front/xdripback.c \
src/runtime/front/xfeedback.c \
src/runtime/front/xfifo.c \
src/runtime/front/xfifo.h \
src/runtime/front/xfilter.c \
src/runtime/front/xgarbage.c \
src/runtime/front/xhashptr.c \
src/runtime/front/xident.c \
src/runtime/front/xinput.c \
src/runtime/front/xlanding.c \
src/runtime/front/xlock.h \
src/runtime/front/xnameshift.c \
src/runtime/front/xobserve.c \
src/runtime/front/xoutput.c \
src/runtime/front/xpar.c \
src/runtime/front/xrun.c \
src/runtime/front/xserial.c \
src/runtime/front/xsplit.c \
src/runtime/front/xstack.c \
src/runtime/front/xstack.h \
src/runtime/front/xstar.c \
src/runtime/front/xstream.c \
src/runtime/front/xsync.c \
src/runtime/front/xthread.c \
src/runtime/front/xtostring.c \
src/runtime/front/xworker.c \
src/runtime/front/xworker.h \
src/runtime/front/xzipper.c
libfrontrt_la_CPPFLAGS = $(AM_CPPFLAGS) \
-I$(srcdir)/src/runtime/stream/utils \
-I$(srcdir)/src/runtime/stream/shared \
-I$(srcdir)/src/runtime/stream/netif \
-I$(srcdir)/src/distrib/common \
-I$(srcdir)/src/resource
if ENABLE_RESSERV
pkglib_LTLIBRARIES += libresserv.la
bin_PROGRAMS = src/resource/resserv
libresserv_la_SOURCES = \
src/resource/resbalance.c \
src/resource/resbitmap.h \
src/resource/resclient.c \
src/resource/resclient.h \
src/resource/resconf.c \
src/resource/resconf.h \
src/resource/rescpubind.c \
src/resource/rescpuinfo.c \
src/resource/resdefs.h \
src/resource/reshwloc.c \
src/resource/reslist.c \
src/resource/resloop.c \
src/resource/resmap.c \
src/resource/resmem.c \
src/resource/resnet.c \
src/resource/resource.c \
src/resource/resource.h \
src/resource/resparse.c \
src/resource/resparse.h \
src/resource/resproto.h \
src/resource/resremote.c \
src/resource/resserver.c \
src/resource/resserver.h \
src/resource/resstream.c \
src/resource/resstream.h \
src/resource/restopo.c \
src/resource/restopo.h \
src/resource/restypes.h \
src/resource/resutil.c
libresserv_la_CPPFLAGS = $(AM_CPPFLAGS)
src_resource_resserv_SOURCES = src/resource/resmain.c
src_resource_resserv_LDADD = libresserv.la
if ENABLE_HWLOC
libresserv_la_CPPFLAGS += $(HWLOC_INCLUDES)
src_resource_resserv_LDADD += $(LIBHWLOC_LA)
endif
endif
libfrontnodist_la_SOURCES = \
src/distrib/common/reference.c \
src/runtime/front/xnodist.c
libfrontnodist_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(srcdir)/src/runtime/stream/utils \
-I$(srcdir)/src/distrib/common
# for runtime/stream/netif
BUILT_SOURCES = src/runtime/stream/netif/parser.h
AM_YFLAGS = -d
libtbpthread_la_SOURCES = \
src/threading/pthread/entity.c \
src/threading/pthread/entity.h \
src/threading/pthread/stream.c \
src/threading/pthread/stream.h \
src/threading/pthread/streamset.c \
src/threading/pthread/monitorer.c \
src/threading/pthread/monitorer.h
if ENABLE_TH_LPEL
pkglib_LTLIBRARIES += libtblpel.la
libtblpel_la_SOURCES = \
src/threading/lpel/lpelmod/assign.c \
src/threading/lpel/lpelmod/assign.h \
src/threading/lpel/lpelmod/mon_snet.c \
src/threading/lpel/lpelmod/mon_snet.h \
src/threading/lpel/lpelif/glue_snet.c \
src/threading/lpel/lpelif/glue_snet.h \
src/threading/lpel/lpelif/glue_decen.c \
src/threading/lpel/lpelif/wrappers.c
libtblpel_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(LPEL_INCLUDES) \
-I$(srcdir)/src/threading/lpel/lpelmod
libtblpel_la_LIBADD = $(LIBLPEL_LA)
pkglib_LTLIBRARIES += libtblpel_hrc.la
libtblpel_hrc_la_SOURCES = \
src/threading/lpel/lpelmod/assign.c \
src/threading/lpel/lpelmod/assign.h \
src/threading/lpel/lpelmod/mon_snet.c \
src/threading/lpel/lpelmod/mon_snet.h \
src/threading/lpel/lpelif/glue_snet.c \
src/threading/lpel/lpelif/glue_snet.h \
src/threading/lpel/lpelif/glue_hrc.c \
src/threading/lpel/lpelif/wrappers.c
libtblpel_hrc_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(LPEL_INCLUDES) \
-I$(srcdir)/src/threading/lpel/lpelmod
libtblpel_hrc_la_LIBADD = $(LIBLPEL_HRC_LA)
endif
libC4SNet_la_SOURCES = \
src/interfaces/c4snet/C4SNet.c \
src/interfaces/c4snet/C4SNet.h \
src/interfaces/c4snet/base64.h \
src/interfaces/c4snet/base64.c
libC4SNet_la_CPPFLAGS = $(AM_CPPFLAGS)
if ENABLE_DIST_MPI
libC4SNet_la_CPPFLAGS += -I$(srcdir)/src/distrib/mpi
endif
if ENABLE_DIST_SCC
libC4SNet_la_CPPFLAGS += -I$(srcdir)/../../../scc-hg/rcce/include -I$(srcdir)/src/distrib/scc
endif
libC4SNetc_la_SOURCES = \
src/interfaces/c4snet/C4SNetc.c \
src/interfaces/c4snet/C4SNetc.h
libdistribnodist_la_SOURCES = \
src/distrib/common/reference.c \
src/distrib/nodist/distribution.c
libdistribnodist_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(srcdir)/src/distrib/common
if ENABLE_DIST_MPI
pkglib_LTLIBRARIES += libdistribmpi.la libfrontmpi.la
libdistribmpi_la_SOURCES = \
src/distrib/common/tuplelist.c \
src/distrib/common/tuplelist.h \
src/distrib/common/imanager.c \
src/distrib/common/imanager.h \
src/distrib/common/fetcher.c \
src/distrib/common/fetcher.h \
src/distrib/common/omanager.c \
src/distrib/common/omanager.h \
src/distrib/common/reference.c \
src/distrib/common/reference.h \
src/distrib/common/distribcommon.c \
src/distrib/common/distribcommon.h \
src/distrib/mpi/distribution.c \
src/distrib/mpi/pack.h \
src/distrib/mpi/transmit.c
libdistribmpi_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(srcdir)/src/distrib/mpi \
-I$(srcdir)/src/distrib/common
libfrontmpi_la_SOURCES = \
src/runtime/front/node.h \
src/runtime/front/node-proto.h \
src/runtime/front/xdistrib.c \
src/runtime/front/xtransfer.c \
src/runtime/front/xmanager.c \
src/runtime/front/frontmpi.c \
src/distrib/common/reference.h \
src/distrib/common/reference.c \
src/distrib/common/distribcommon.h \
src/distrib/common/distribfront.h \
src/distrib/mpi/distribution.c \
src/distrib/mpi/pack.h \
src/distrib/mpi/transmit.c \
src/runtime/stream/utils/hashtable.c \
src/runtime/stream/utils/hashtable.h
libfrontmpi_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(srcdir)/src/runtime/stream/utils \
-I$(srcdir)/src/distrib/common \
-I$(srcdir)/src/distrib/mpi
endif
if ENABLE_DIST_SCC
pkglib_LTLIBRARIES += libdistribscc.la
libdistribscc_la_SOURCES = \
src/distrib/common/tuplelist.c \
src/distrib/common/tuplelist.h \
src/distrib/common/imanager.c \
src/distrib/common/imanager.h \
src/distrib/common/fetcher.c \
src/distrib/common/fetcher.h \
src/distrib/common/omanager.c \
src/distrib/common/omanager.h \
src/distrib/common/distribcommon.c \
src/distrib/common/distribcommon.h \
src/distrib/scc/sccmalloc.c \
src/distrib/scc/sccmalloc.h \
src/distrib/scc/sccref.c \
src/distrib/scc/distribution.c \
src/distrib/scc/scc.h \
src/distrib/scc/transmit.c
libdistribscc_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(srcdir)/src/distrib/scc \
-I$(srcdir)/src/distrib/common \
-I$(srcdir)/../../../scc-hg/rcce/include
endif
compile_cmd: Makefile
$(AM_V_at)rm -f $@
$(AM_V_GEN)echo '#!/bin/sh' >$@ ; \
echo $(SHELL) '$${SNET_LIBS}'/libtool --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
$(CC) $(DEFS) $(AM_CPPFLAGS) -I'$${SNET_INCLUDES}' $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c '"$$@"' >>$@ ; \
chmod +x $@
link_cmd: Makefile
$(AM_V_at)rm -f $@
$(AM_V_GEN)echo '#!/bin/sh' >$@
if ENABLE_RESSERV
if ENABLE_HWLOC
$(AM_V_GEN)echo 'RESSERV="-lresserv $(HWLOC_LIBS) -lhwloc"' >>$@
else
$(AM_V_GEN)echo 'RESSERV=-lresserv' >>$@
endif
else
$(AM_V_GEN)echo 'RESSERV=' >>$@
endif
$(AM_V_GEN)echo $(SHELL) '$${SNET_LIBS}'/libtool --preserve-dup-deps \
--tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
$(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
-L'$${SNET_LIBS} "$$@" $${RESSERV}' $(LIBS) >>$@ ; \
chmod +x $@
snet-config.mkf: Makefile
$(AM_V_at)rm -f $@
$(AM_V_GEN)echo LPEL_INCLUDES=$(LPEL_INCLUDES) >$@
$(AM_V_GEN)echo LIBLPEL_LA=$(LIBLPEL_LA) >>$@
CLEANFILES = \
compile_cmd \
link_cmd \
snet-config.mkf
# re-generate the "libtool" script when it becomes deprecated
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool
# ensure that aclocal finds the additional macros
ACLOCAL_AMFLAGS = -I build-aux