configure: regroup automake conditionals
[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 \
9b4bf32b 11 urcu-flavors/Makefile.bp \
94450481 12 urcu-flavors/qsbr.c \
1fe327be 13 urcu-flavors/mb.c \
56e47f8d 14 urcu-flavors/membarrier.c \
9b4bf32b
MD
15 urcu-flavors/signal.c \
16 urcu-flavors/bp.c
8bad63a0 17
f37f1d93 18dist_doc_examples_DATA = \
0485c1bf 19 dist-files/Makefile \
f37f1d93
MD
20 Makefile.examples.template
21
22doc_examples_listdir = ${doc_examplesdir}/list
23
24dist_doc_examples_list_DATA = \
25 list/Makefile \
26 list/Makefile.cds_list_add_rcu \
05796604 27 list/Makefile.cds_list_add_tail_rcu \
06ced8d6 28 list/Makefile.cds_list_del_rcu \
17fb3188 29 list/Makefile.cds_list_for_each_rcu \
d427bff9 30 list/Makefile.cds_list_for_each_entry_rcu \
7eba9f88 31 list/Makefile.cds_list_replace_rcu \
06ced8d6 32 list/cds_list_add_rcu.c \
05796604 33 list/cds_list_add_tail_rcu.c \
7eba9f88 34 list/cds_list_del_rcu.c \
17fb3188 35 list/cds_list_for_each_rcu.c \
d427bff9 36 list/cds_list_for_each_entry_rcu.c \
7eba9f88 37 list/cds_list_replace_rcu.c
f37f1d93 38
474190bf
MD
39doc_examples_hlistdir = ${doc_examplesdir}/hlist
40
41dist_doc_examples_hlist_DATA = \
42 hlist/Makefile \
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
51
48337075
MD
52doc_examples_wfcqueuedir = ${doc_examplesdir}/wfcqueue
53
54dist_doc_examples_wfcqueue_DATA = \
0bee4069 55 wfcqueue/Makefile \
48337075 56 wfcqueue/Makefile.cds_wfcq_enqueue \
c83da169 57 wfcqueue/Makefile.cds_wfcq_dequeue \
8f09dfa7 58 wfcqueue/Makefile.cds_wfcq_splice \
c83da169 59 wfcqueue/cds_wfcq_enqueue.c \
8f09dfa7
MD
60 wfcqueue/cds_wfcq_dequeue.c \
61 wfcqueue/cds_wfcq_splice.c
48337075 62
3709f861
MD
63doc_examples_wfstackdir = ${doc_examplesdir}/wfstack
64
65dist_doc_examples_wfstack_DATA = \
0bee4069 66 wfstack/Makefile \
3709f861 67 wfstack/Makefile.cds_wfs_push \
95bba308 68 wfstack/Makefile.cds_wfs_pop \
53a77191 69 wfstack/Makefile.cds_wfs_pop_all_blocking \
95bba308 70 wfstack/cds_wfs_push.c \
53a77191
MD
71 wfstack/cds_wfs_pop.c \
72 wfstack/cds_wfs_pop_all_blocking.c
3709f861 73
a5fb5b81
MD
74doc_examples_lfstackdir = ${doc_examplesdir}/lfstack
75
76dist_doc_examples_lfstack_DATA = \
77 lfstack/Makefile \
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
84
d4b71408
MD
85doc_examples_rculfqueuedir = ${doc_examplesdir}/rculfqueue
86
87dist_doc_examples_rculfqueue_DATA = \
88 rculfqueue/Makefile \
89 rculfqueue/Makefile.cds_lfq_enqueue \
90 rculfqueue/Makefile.cds_lfq_dequeue \
91 rculfqueue/cds_lfq_enqueue.c \
92 rculfqueue/cds_lfq_dequeue.c
93
f7e7a1b8
MD
94doc_examples_rculfhashdir = ${doc_examplesdir}/rculfhash
95
96dist_doc_examples_rculfhash_DATA = \
97 rculfhash/Makefile \
98 rculfhash/jhash.h \
99 rculfhash/Makefile.cds_lfht_add \
650b434b 100 rculfhash/Makefile.cds_lfht_add_unique \
34b3f359 101 rculfhash/Makefile.cds_lfht_add_replace \
f7e7a1b8 102 rculfhash/Makefile.cds_lfht_del \
d14301c2 103 rculfhash/Makefile.cds_lfht_destroy \
2dbf31c9 104 rculfhash/Makefile.cds_lfht_lookup \
b5e35d2d 105 rculfhash/Makefile.cds_lfht_for_each_entry_duplicate \
f7e7a1b8 106 rculfhash/cds_lfht_add.c \
650b434b 107 rculfhash/cds_lfht_add_unique.c \
34b3f359 108 rculfhash/cds_lfht_add_replace.c \
d14301c2 109 rculfhash/cds_lfht_del.c \
2dbf31c9 110 rculfhash/cds_lfht_destroy.c \
b5e35d2d
MD
111 rculfhash/cds_lfht_lookup.c \
112 rculfhash/cds_lfht_for_each_entry_duplicate.c
f7e7a1b8 113
1136f454
MJ
114# Building the examples requires the shared libraries to be enabled
115if ENABLE_EXAMPLES
a5bae03d
MD
116
117SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \
118 wfstack lfstack rculfhash
119
94e71092 120# Copies are for VPATH build support.
c50fdd7c 121all-local:
dbfa8879 122 $(AM_V_at)if [ x"$(srcdir)" != x"$(builddir)" ]; then \
ad1a3fa0 123 cp -pfR $(srcdir)/dist-files $(builddir); \
3cfaaf1c 124 chmod -R u+w $(builddir)/dist-files; \
ad1a3fa0 125 cp -pf $(srcdir)/Makefile.examples.template $(builddir); \
3cfaaf1c 126 chmod u+w $(builddir)/Makefile.examples.template; \
a5bae03d 127 for subdir in $(SUBDIRS_PROXY); do \
ad1a3fa0 128 cp -pfR $(srcdir)/$$subdir $(builddir); \
3cfaaf1c 129 chmod -R u+w $(builddir)/$$subdir; \
a5bae03d 130 done; \
c17913dc 131 fi; \
074c3a1b 132 if [ x"$(shell echo "$(top_srcdir)" | $(GREP) "^/" | wc -l)" = x"1" ]; then \
c17913dc
MD
133 rel_src_subdir=""; \
134 else \
c17913dc
MD
135 rel_src_subdir="../"; \
136 fi; \
074c3a1b 137 if [ x"$(shell echo "$(top_builddir)" | $(GREP) "^/" | wc -l)" = x"1" ]; then \
c17913dc
MD
138 rel_build_subdir=""; \
139 else \
c17913dc
MD
140 rel_build_subdir="../"; \
141 fi; \
27ea686a 142 $(MAKE) -f dist-files/Makefile CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" AM_CPPFLAGS="$(AM_CPPFLAGS) -I"$${rel_src_subdir}/$(top_srcdir)/include/" -I"$${rel_src_subdir}/$(top_srcdir)/src/" -I"$${rel_build_subdir}$(top_builddir)/include/" -I"$${rel_build_subdir}$(top_builddir)/include/src/"" CFLAGS="$(CFLAGS)" AM_CFLAGS="$(AM_CFLAGS)" LDFLAGS="$(LDFLAGS)" AM_LDFLAGS="$(AM_LDFLAGS) -L../../../src/.libs/ -Wl,-rpath "$(PWD)/../../src/.libs/"" AM_V_P="$(AM_V_P)" AM_V_at="$(AM_V_at)" $(AM_MAKEFLAGS) all;
c50fdd7c
MD
143
144clean-local:
dbfa8879 145 $(AM_V_at)$(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; \
c17913dc 146 if [ x"$(srcdir)" != x"$(builddir)" ]; then \
a5bae03d
MD
147 for subdir in $(SUBDIRS_PROXY); do \
148 rm -rf $(builddir)/$$subdir; \
149 done; \
94e71092 150 rm -f $(builddir)/Makefile.examples.template; \
94e71092 151 rm -rf $(builddir)/dist-files; \
c17913dc 152 fi;
2f49a496 153endif
This page took 0.040571 seconds and 4 git commands to generate.