1 doc_examplesdir = ${docdir}/examples
3 doc_examples_urcu_flavorsdir = ${doc_examplesdir}/urcu-flavors
5 dist_doc_examples_urcu_flavors_DATA = \
6 urcu-flavors/Makefile \
7 urcu-flavors/Makefile.qsbr \
8 urcu-flavors/Makefile.mb \
9 urcu-flavors/Makefile.membarrier \
10 urcu-flavors/Makefile.signal \
11 urcu-flavors/Makefile.bp \
14 urcu-flavors/membarrier.c \
15 urcu-flavors/signal.c \
18 dist_doc_examples_DATA = \
20 Makefile.examples.template
22 doc_examples_listdir = ${doc_examplesdir}/list
24 dist_doc_examples_list_DATA = \
26 list/Makefile.cds_list_add_rcu \
27 list/Makefile.cds_list_add_tail_rcu \
28 list/Makefile.cds_list_del_rcu \
29 list/Makefile.cds_list_for_each_rcu \
30 list/Makefile.cds_list_for_each_entry_rcu \
31 list/Makefile.cds_list_replace_rcu \
32 list/cds_list_add_rcu.c \
33 list/cds_list_add_tail_rcu.c \
34 list/cds_list_del_rcu.c \
35 list/cds_list_for_each_rcu.c \
36 list/cds_list_for_each_entry_rcu.c \
37 list/cds_list_replace_rcu.c
39 doc_examples_hlistdir = ${doc_examplesdir}/hlist
41 dist_doc_examples_hlist_DATA = \
43 hlist/Makefile.cds_hlist_add_head_rcu \
44 hlist/Makefile.cds_hlist_del_rcu \
45 hlist/Makefile.cds_hlist_for_each_rcu \
46 hlist/Makefile.cds_hlist_for_each_entry_rcu \
47 hlist/cds_hlist_add_head_rcu.c \
48 hlist/cds_hlist_del_rcu.c \
49 hlist/cds_hlist_for_each_rcu.c \
50 hlist/cds_hlist_for_each_entry_rcu.c
52 doc_examples_wfcqueuedir = ${doc_examplesdir}/wfcqueue
54 dist_doc_examples_wfcqueue_DATA = \
56 wfcqueue/Makefile.cds_wfcq_enqueue \
57 wfcqueue/Makefile.cds_wfcq_dequeue \
58 wfcqueue/Makefile.cds_wfcq_splice \
59 wfcqueue/cds_wfcq_enqueue.c \
60 wfcqueue/cds_wfcq_dequeue.c \
61 wfcqueue/cds_wfcq_splice.c
63 doc_examples_wfstackdir = ${doc_examplesdir}/wfstack
65 dist_doc_examples_wfstack_DATA = \
67 wfstack/Makefile.cds_wfs_push \
68 wfstack/Makefile.cds_wfs_pop \
69 wfstack/Makefile.cds_wfs_pop_all_blocking \
70 wfstack/cds_wfs_push.c \
71 wfstack/cds_wfs_pop.c \
72 wfstack/cds_wfs_pop_all_blocking.c
74 doc_examples_lfstackdir = ${doc_examplesdir}/lfstack
76 dist_doc_examples_lfstack_DATA = \
78 lfstack/Makefile.cds_lfs_push \
79 lfstack/Makefile.cds_lfs_pop_blocking \
80 lfstack/Makefile.cds_lfs_pop_all_blocking \
81 lfstack/cds_lfs_push.c \
82 lfstack/cds_lfs_pop_blocking.c \
83 lfstack/cds_lfs_pop_all_blocking.c
85 doc_examples_rculfqueuedir = ${doc_examplesdir}/rculfqueue
87 dist_doc_examples_rculfqueue_DATA = \
89 rculfqueue/Makefile.cds_lfq_enqueue \
90 rculfqueue/Makefile.cds_lfq_dequeue \
91 rculfqueue/cds_lfq_enqueue.c \
92 rculfqueue/cds_lfq_dequeue.c
94 doc_examples_rculfhashdir = ${doc_examplesdir}/rculfhash
96 dist_doc_examples_rculfhash_DATA = \
99 rculfhash/Makefile.cds_lfht_add \
100 rculfhash/Makefile.cds_lfht_add_unique \
101 rculfhash/Makefile.cds_lfht_add_replace \
102 rculfhash/Makefile.cds_lfht_del \
103 rculfhash/Makefile.cds_lfht_destroy \
104 rculfhash/Makefile.cds_lfht_lookup \
105 rculfhash/Makefile.cds_lfht_for_each_entry_duplicate \
106 rculfhash/cds_lfht_add.c \
107 rculfhash/cds_lfht_add_unique.c \
108 rculfhash/cds_lfht_add_replace.c \
109 rculfhash/cds_lfht_del.c \
110 rculfhash/cds_lfht_destroy.c \
111 rculfhash/cds_lfht_lookup.c \
112 rculfhash/cds_lfht_for_each_entry_duplicate.c
115 # Don't build examples if shared libraries support was explicitly
119 SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \
120 wfstack lfstack rculfhash
122 # Copies are for VPATH build support.
124 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
125 cp -fR $(srcdir)/dist-files $(builddir); \
126 cp -f $(srcdir)/Makefile.examples.template $(builddir); \
127 for subdir in $(SUBDIRS_PROXY); do \
128 cp -fR $(srcdir)/$$subdir $(builddir); \
131 $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="$(CPPFLAGS) -I../../../urcu/ -I../../../" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all
134 $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean
135 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
136 for subdir in $(SUBDIRS_PROXY); do \
137 rm -rf $(builddir)/$$subdir; \
139 rm -f $(builddir)/Makefile.examples.template; \
140 rm -rf $(builddir)/dist-files; \