doc/examples: add dist toplevel makefile
[urcu.git] / doc / examples / Makefile.am
CommitLineData
8bad63a0
MD
1doc_examplesdir = ${docdir}/examples
2
6df9f02d 3doc_examples_urcu_flavorsdir = ${doc_examplesdir}/urcu-flavors
8bad63a0 4
6df9f02d
MD
5dist_doc_examples_urcu_flavors_DATA = \
6 urcu-flavors/Makefile \
7 urcu-flavors/Makefile.qsbr \
94450481 8 urcu-flavors/Makefile.mb \
56e47f8d 9 urcu-flavors/Makefile.membarrier \
1fe327be 10 urcu-flavors/Makefile.signal \
94450481 11 urcu-flavors/qsbr.c \
1fe327be 12 urcu-flavors/mb.c \
56e47f8d 13 urcu-flavors/membarrier.c \
1fe327be 14 urcu-flavors/signal.c
8bad63a0 15
f37f1d93 16dist_doc_examples_DATA = \
0485c1bf 17 dist-files/Makefile \
f37f1d93
MD
18 Makefile.examples.template
19
20doc_examples_listdir = ${doc_examplesdir}/list
21
22dist_doc_examples_list_DATA = \
23 list/Makefile \
24 list/Makefile.cds_list_add_rcu \
05796604 25 list/Makefile.cds_list_add_tail_rcu \
06ced8d6 26 list/Makefile.cds_list_del_rcu \
17fb3188 27 list/Makefile.cds_list_for_each_rcu \
d427bff9 28 list/Makefile.cds_list_for_each_entry_rcu \
7eba9f88 29 list/Makefile.cds_list_replace_rcu \
06ced8d6 30 list/cds_list_add_rcu.c \
05796604 31 list/cds_list_add_tail_rcu.c \
7eba9f88 32 list/cds_list_del_rcu.c \
17fb3188 33 list/cds_list_for_each_rcu.c \
d427bff9 34 list/cds_list_for_each_entry_rcu.c \
7eba9f88 35 list/cds_list_replace_rcu.c
f37f1d93 36
474190bf
MD
37doc_examples_hlistdir = ${doc_examplesdir}/hlist
38
39dist_doc_examples_hlist_DATA = \
40 hlist/Makefile \
41 hlist/Makefile.cds_hlist_add_head_rcu \
42 hlist/Makefile.cds_hlist_del_rcu \
43 hlist/Makefile.cds_hlist_for_each_rcu \
44 hlist/Makefile.cds_hlist_for_each_entry_rcu \
45 hlist/cds_hlist_add_head_rcu.c \
46 hlist/cds_hlist_del_rcu.c \
47 hlist/cds_hlist_for_each_rcu.c \
48 hlist/cds_hlist_for_each_entry_rcu.c
49
48337075
MD
50doc_examples_wfcqueuedir = ${doc_examplesdir}/wfcqueue
51
52dist_doc_examples_wfcqueue_DATA = \
0bee4069 53 wfcqueue/Makefile \
48337075 54 wfcqueue/Makefile.cds_wfcq_enqueue \
c83da169 55 wfcqueue/Makefile.cds_wfcq_dequeue \
8f09dfa7 56 wfcqueue/Makefile.cds_wfcq_splice \
c83da169 57 wfcqueue/cds_wfcq_enqueue.c \
8f09dfa7
MD
58 wfcqueue/cds_wfcq_dequeue.c \
59 wfcqueue/cds_wfcq_splice.c
48337075 60
3709f861
MD
61doc_examples_wfstackdir = ${doc_examplesdir}/wfstack
62
63dist_doc_examples_wfstack_DATA = \
0bee4069 64 wfstack/Makefile \
3709f861 65 wfstack/Makefile.cds_wfs_push \
95bba308 66 wfstack/Makefile.cds_wfs_pop \
53a77191 67 wfstack/Makefile.cds_wfs_pop_all_blocking \
95bba308 68 wfstack/cds_wfs_push.c \
53a77191
MD
69 wfstack/cds_wfs_pop.c \
70 wfstack/cds_wfs_pop_all_blocking.c
3709f861 71
a5fb5b81
MD
72doc_examples_lfstackdir = ${doc_examplesdir}/lfstack
73
74dist_doc_examples_lfstack_DATA = \
75 lfstack/Makefile \
76 lfstack/Makefile.cds_lfs_push \
77 lfstack/Makefile.cds_lfs_pop_blocking \
78 lfstack/Makefile.cds_lfs_pop_all_blocking \
79 lfstack/cds_lfs_push.c \
80 lfstack/cds_lfs_pop_blocking.c \
81 lfstack/cds_lfs_pop_all_blocking.c
82
c50fdd7c
MD
83if NO_SHARED
84# Don't build examples if shared libraries support was explicitly
85# disabled.
86else
c50fdd7c 87all-local:
0485c1bf 88 $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all
c50fdd7c
MD
89
90clean-local:
0485c1bf 91 $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean;
2f49a496 92endif
This page took 0.027327 seconds and 4 git commands to generate.