1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
doc_examplesdir = ${docdir}/examples
doc_examples_urcu_flavorsdir = ${doc_examplesdir}/urcu-flavors
dist_doc_examples_urcu_flavors_DATA = \
urcu-flavors/Makefile \
urcu-flavors/Makefile.qsbr \
urcu-flavors/Makefile.mb \
urcu-flavors/Makefile.membarrier \
urcu-flavors/Makefile.signal \
urcu-flavors/Makefile.bp \
urcu-flavors/qsbr.c \
urcu-flavors/mb.c \
urcu-flavors/membarrier.c \
urcu-flavors/signal.c \
urcu-flavors/bp.c
dist_doc_examples_DATA = \
dist-files/Makefile \
Makefile.examples.template
doc_examples_listdir = ${doc_examplesdir}/list
dist_doc_examples_list_DATA = \
list/Makefile \
list/Makefile.cds_list_add_rcu \
list/Makefile.cds_list_add_tail_rcu \
list/Makefile.cds_list_del_rcu \
list/Makefile.cds_list_for_each_rcu \
list/Makefile.cds_list_for_each_entry_rcu \
list/Makefile.cds_list_replace_rcu \
list/cds_list_add_rcu.c \
list/cds_list_add_tail_rcu.c \
list/cds_list_del_rcu.c \
list/cds_list_for_each_rcu.c \
list/cds_list_for_each_entry_rcu.c \
list/cds_list_replace_rcu.c
doc_examples_hlistdir = ${doc_examplesdir}/hlist
dist_doc_examples_hlist_DATA = \
hlist/Makefile \
hlist/Makefile.cds_hlist_add_head_rcu \
hlist/Makefile.cds_hlist_del_rcu \
hlist/Makefile.cds_hlist_for_each_rcu \
hlist/Makefile.cds_hlist_for_each_entry_rcu \
hlist/cds_hlist_add_head_rcu.c \
hlist/cds_hlist_del_rcu.c \
hlist/cds_hlist_for_each_rcu.c \
hlist/cds_hlist_for_each_entry_rcu.c
doc_examples_wfcqueuedir = ${doc_examplesdir}/wfcqueue
dist_doc_examples_wfcqueue_DATA = \
wfcqueue/Makefile \
wfcqueue/Makefile.cds_wfcq_enqueue \
wfcqueue/Makefile.cds_wfcq_dequeue \
wfcqueue/Makefile.cds_wfcq_splice \
wfcqueue/cds_wfcq_enqueue.c \
wfcqueue/cds_wfcq_dequeue.c \
wfcqueue/cds_wfcq_splice.c
doc_examples_wfstackdir = ${doc_examplesdir}/wfstack
dist_doc_examples_wfstack_DATA = \
wfstack/Makefile \
wfstack/Makefile.cds_wfs_push \
wfstack/Makefile.cds_wfs_pop \
wfstack/Makefile.cds_wfs_pop_all_blocking \
wfstack/cds_wfs_push.c \
wfstack/cds_wfs_pop.c \
wfstack/cds_wfs_pop_all_blocking.c
doc_examples_lfstackdir = ${doc_examplesdir}/lfstack
dist_doc_examples_lfstack_DATA = \
lfstack/Makefile \
lfstack/Makefile.cds_lfs_push \
lfstack/Makefile.cds_lfs_pop_blocking \
lfstack/Makefile.cds_lfs_pop_all_blocking \
lfstack/cds_lfs_push.c \
lfstack/cds_lfs_pop_blocking.c \
lfstack/cds_lfs_pop_all_blocking.c
doc_examples_rculfqueuedir = ${doc_examplesdir}/rculfqueue
dist_doc_examples_rculfqueue_DATA = \
rculfqueue/Makefile \
rculfqueue/Makefile.cds_lfq_enqueue \
rculfqueue/Makefile.cds_lfq_dequeue \
rculfqueue/cds_lfq_enqueue.c \
rculfqueue/cds_lfq_dequeue.c
doc_examples_rculfhashdir = ${doc_examplesdir}/rculfhash
dist_doc_examples_rculfhash_DATA = \
rculfhash/Makefile \
rculfhash/jhash.h \
rculfhash/Makefile.cds_lfht_add \
rculfhash/Makefile.cds_lfht_add_unique \
rculfhash/Makefile.cds_lfht_add_replace \
rculfhash/Makefile.cds_lfht_del \
rculfhash/Makefile.cds_lfht_destroy \
rculfhash/Makefile.cds_lfht_lookup \
rculfhash/Makefile.cds_lfht_for_each_entry_duplicate \
rculfhash/cds_lfht_add.c \
rculfhash/cds_lfht_add_unique.c \
rculfhash/cds_lfht_add_replace.c \
rculfhash/cds_lfht_del.c \
rculfhash/cds_lfht_destroy.c \
rculfhash/cds_lfht_lookup.c \
rculfhash/cds_lfht_for_each_entry_duplicate.c
if NO_SHARED
# Don't build examples if shared libraries support was explicitly
# disabled.
else
SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \
wfstack lfstack rculfhash
# Copies are for VPATH build support.
all-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
cp -pfR $(srcdir)/dist-files $(builddir); \
cp -pf $(srcdir)/Makefile.examples.template $(builddir); \
for subdir in $(SUBDIRS_PROXY); do \
cp -pfR $(srcdir)/$$subdir $(builddir); \
done; \
fi; \
if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
echo "Examples: absolute top_srcdir path $(top_srcdir)"; \
rel_src_subdir=""; \
else \
echo "Examples: relative top_srcdir path $(top_srcdir)"; \
rel_src_subdir="../"; \
fi; \
if [ x"$(shell echo "$(top_builddir)" | grep "^/" | wc -l)" = x"1" ]; then \
echo "Examples: absolute top_builddir path $(top_builddir)"; \
rel_build_subdir=""; \
else \
echo "Examples: relative top_builddir path $(top_builddir)"; \
rel_build_subdir="../"; \
fi; \
$(MAKE) -f dist-files/Makefile AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir/$(top_srcdir)/ -I$$rel_build_subdir$(top_builddir)/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all;
clean-local:
@$(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; \
if [ x"$(srcdir)" != x"$(builddir)" ]; then \
for subdir in $(SUBDIRS_PROXY); do \
rm -rf $(builddir)/$$subdir; \
done; \
rm -f $(builddir)/Makefile.examples.template; \
rm -rf $(builddir)/dist-files; \
fi;
endif
|