X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=5ad70f45d88cbcd2e687fbf069849c29e735c832;hb=a5bae03d59c22e57263b8610b9fed99738303cf0;hp=60848e912f8d85bc571db5fe0fb8d49ddc98f158;hpb=650b434b12597af49cad28c5c4b5faa3c98c04b0;p=userspace-rcu.git diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 60848e9..5ad70f4 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -98,18 +98,45 @@ dist_doc_examples_rculfhash_DATA = \ 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_del.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 -fR $(srcdir)/dist-files $(builddir); \ + cp -f $(srcdir)/Makefile.examples.template $(builddir); \ + for subdir in $(SUBDIRS_PROXY); do \ + cp -fR $(srcdir)/$$subdir $(builddir); \ + done; \ + fi $(MAKE) -f dist-files/Makefile AM_CPPFLAGS="-I../../../urcu/ -I../../../" AM_LDFLAGS='-L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all clean-local: - $(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; + $(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