doc/examples: add mb flavor
[urcu.git] / doc / examples / Makefile.am
1 doc_examplesdir = ${docdir}/examples
2
3 doc_examples_urcu_flavorsdir = ${doc_examplesdir}/urcu-flavors
4
5 dist_doc_examples_urcu_flavors_DATA = \
6 urcu-flavors/Makefile \
7 urcu-flavors/Makefile.qsbr \
8 urcu-flavors/Makefile.mb \
9 urcu-flavors/qsbr.c \
10 urcu-flavors/mb.c
11
12 dist_doc_examples_DATA = \
13 Makefile.examples.template
14
15 doc_examples_listdir = ${doc_examplesdir}/list
16
17 dist_doc_examples_list_DATA = \
18 list/Makefile \
19 list/Makefile.cds_list_add_rcu \
20 list/Makefile.cds_list_add_tail_rcu \
21 list/Makefile.cds_list_del_rcu \
22 list/Makefile.cds_list_for_each_rcu \
23 list/Makefile.cds_list_for_each_entry_rcu \
24 list/Makefile.cds_list_replace_rcu \
25 list/cds_list_add_rcu.c \
26 list/cds_list_add_tail_rcu.c \
27 list/cds_list_del_rcu.c \
28 list/cds_list_for_each_rcu.c \
29 list/cds_list_for_each_entry_rcu.c \
30 list/cds_list_replace_rcu.c
31
32 doc_examples_hlistdir = ${doc_examplesdir}/hlist
33
34 dist_doc_examples_hlist_DATA = \
35 hlist/Makefile \
36 hlist/Makefile.cds_hlist_add_head_rcu \
37 hlist/Makefile.cds_hlist_del_rcu \
38 hlist/Makefile.cds_hlist_for_each_rcu \
39 hlist/Makefile.cds_hlist_for_each_entry_rcu \
40 hlist/cds_hlist_add_head_rcu.c \
41 hlist/cds_hlist_del_rcu.c \
42 hlist/cds_hlist_for_each_rcu.c \
43 hlist/cds_hlist_for_each_entry_rcu.c
44
45 doc_examples_wfcqueuedir = ${doc_examplesdir}/wfcqueue
46
47 dist_doc_examples_wfcqueue_DATA = \
48 wfcqueue/Makefile \
49 wfcqueue/Makefile.cds_wfcq_enqueue \
50 wfcqueue/Makefile.cds_wfcq_dequeue \
51 wfcqueue/Makefile.cds_wfcq_splice \
52 wfcqueue/cds_wfcq_enqueue.c \
53 wfcqueue/cds_wfcq_dequeue.c \
54 wfcqueue/cds_wfcq_splice.c
55
56 doc_examples_wfstackdir = ${doc_examplesdir}/wfstack
57
58 dist_doc_examples_wfstack_DATA = \
59 wfstack/Makefile \
60 wfstack/Makefile.cds_wfs_push \
61 wfstack/Makefile.cds_wfs_pop \
62 wfstack/Makefile.cds_wfs_pop_all_blocking \
63 wfstack/cds_wfs_push.c \
64 wfstack/cds_wfs_pop.c \
65 wfstack/cds_wfs_pop_all_blocking.c
66
67 doc_examples_lfstackdir = ${doc_examplesdir}/lfstack
68
69 dist_doc_examples_lfstack_DATA = \
70 lfstack/Makefile \
71 lfstack/Makefile.cds_lfs_push \
72 lfstack/Makefile.cds_lfs_pop_blocking \
73 lfstack/Makefile.cds_lfs_pop_all_blocking \
74 lfstack/cds_lfs_push.c \
75 lfstack/cds_lfs_pop_blocking.c \
76 lfstack/cds_lfs_pop_all_blocking.c
77
78 if NO_SHARED
79 # Don't build examples if shared libraries support was explicitly
80 # disabled.
81 else
82 SUBDIRS_PROXY = urcu-flavors list hlist wfcqueue wfstack lfstack
83
84 all-local:
85 for subdir in $(SUBDIRS_PROXY); do \
86 cd $$subdir && $(MAKE) AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all && cd ..; \
87 done
88
89 clean-local:
90 for subdir in $(SUBDIRS_PROXY); do \
91 cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean && cd ..; \
92 done
93 endif
This page took 0.042734 seconds and 4 git commands to generate.