X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=20463812866b31a592152141e9dd417ee7655d0d;hp=3c3d15241bb9ba87ebf0dca133fbd24998c39fb1;hb=1136f4540f901b884c76fe011a468f2257d30a0f;hpb=dbfa88798ce69bc788a351b75db71d3101d87490 diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 3c3d152..2046381 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -111,10 +111,8 @@ dist_doc_examples_rculfhash_DATA = \ 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 +# Building the examples requires the shared libraries to be enabled +if ENABLE_EXAMPLES SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \ wfstack lfstack rculfhash @@ -141,7 +139,7 @@ all-local: else \ rel_build_subdir="../"; \ fi; \ - $(MAKE) -f dist-files/Makefile CC="$(CC)" CPPFLAGS="$(CPPLAGS)" 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; + $(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; clean-local: $(AM_V_at)$(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; \