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