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