From: Mathieu Desnoyers Date: Wed, 15 Jan 2014 14:05:59 +0000 (-0500) Subject: urcu tests: use lib rather than compile from source X-Git-Tag: v0.8.2~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f7ba37f1fa825e88aecd4f104e8ade4bf8016702;p=urcu.git urcu tests: use lib rather than compile from source Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/Makefile.am b/tests/benchmark/Makefile.am index 34251c7..b07dc6e 100644 --- a/tests/benchmark/Makefile.am +++ b/tests/benchmark/Makefile.am @@ -30,8 +30,6 @@ if COMPAT_FUTEX COMPAT+=$(top_srcdir)/compat_futex.c endif -URCU=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(top_srcdir)/wfcqueue.c $(COMPAT) - URCU_COMMON_LIB=$(top_builddir)/liburcu-common.la URCU_LIB=$(top_builddir)/liburcu.la URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la @@ -44,15 +42,18 @@ DEBUG_YIELD_LIB=$(builddir)/../common/libdebug-yield.la EXTRA_DIST = *.sh -test_urcu_SOURCES = test_urcu.c $(URCU) +test_urcu_SOURCES = test_urcu.c +test_urcu_LDADD = $(URCU_LIB) -test_urcu_dynamic_link_SOURCES = test_urcu.c $(URCU) +test_urcu_dynamic_link_SOURCES = test_urcu.c +test_urcu_dynamic_link_LDADD = $(URCU_LIB) test_urcu_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) -test_urcu_timing_SOURCES = test_urcu_timing.c $(URCU) +test_urcu_timing_SOURCES = test_urcu_timing.c +test_urcu_timing_LDADD = $(URCU_LIB) -test_urcu_yield_SOURCES = test_urcu.c $(URCU) -test_urcu_yield_LDADD = $(DEBUG_YIELD_LIB) +test_urcu_yield_SOURCES = test_urcu.c +test_urcu_yield_LDADD = $(URCU_LIB) $(DEBUG_YIELD_LIB) test_urcu_yield_CFLAGS = -DDEBUG_YIELD $(AM_CFLAGS) @@ -97,11 +98,12 @@ test_perthreadlock_timing_LDADD = $(URCU_SIGNAL_LIB) test_perthreadlock_SOURCES = test_perthreadlock.c test_perthreadlock_LDADD = $(URCU_SIGNAL_LIB) -test_mutex_SOURCES = test_mutex.c $(URCU) +test_mutex_SOURCES = test_mutex.c test_looplen_SOURCES = test_looplen.c -test_urcu_gc_SOURCES = test_urcu_gc.c $(URCU) +test_urcu_gc_SOURCES = test_urcu_gc.c +test_urcu_gc_LDADD = $(URCU_LIB) test_urcu_signal_gc_SOURCES = test_urcu_gc.c test_urcu_signal_gc_LDADD = $(URCU_SIGNAL_LIB) @@ -118,7 +120,8 @@ test_urcu_qsbr_lgc_SOURCES = test_urcu_qsbr_gc.c test_urcu_qsbr_lgc_LDADD = $(URCU_QSBR_LIB) test_urcu_qsbr_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS) -test_urcu_lgc_SOURCES = test_urcu_gc.c $(URCU) +test_urcu_lgc_SOURCES = test_urcu_gc.c +test_urcu_lgc_LDADD = $(URCU_LIB) test_urcu_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS) test_urcu_signal_lgc_SOURCES = test_urcu_gc.c @@ -138,9 +141,11 @@ test_urcu_defer_LDADD = $(URCU_LIB) test_cycles_per_loop_SOURCES = test_cycles_per_loop.c -test_urcu_assign_SOURCES = test_urcu_assign.c $(URCU) +test_urcu_assign_SOURCES = test_urcu_assign.c +test_urcu_assign_LDADD = $(URCU_LIB) -test_urcu_assign_dynamic_link_SOURCES = test_urcu_assign.c $(URCU) +test_urcu_assign_dynamic_link_SOURCES = test_urcu_assign.c +test_urcu_assign_dynamic_link_LDADD = $(URCU_LIB) test_urcu_assign_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) test_urcu_bp_SOURCES = test_urcu_bp.c @@ -150,12 +155,12 @@ test_urcu_bp_dynamic_link_SOURCES = test_urcu_bp.c test_urcu_bp_dynamic_link_LDADD = $(URCU_BP_LIB) test_urcu_bp_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) -test_urcu_lfq_SOURCES = test_urcu_lfq.c $(URCU) -test_urcu_lfq_LDADD = $(URCU_CDS_LIB) +test_urcu_lfq_SOURCES = test_urcu_lfq.c +test_urcu_lfq_LDADD = $(URCU_LIB) $(URCU_CDS_LIB) -test_urcu_lfq_dynlink_SOURCES = test_urcu_lfq.c $(URCU) +test_urcu_lfq_dynlink_SOURCES = test_urcu_lfq.c test_urcu_lfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) -test_urcu_lfq_dynlink_LDADD = $(URCU_CDS_LIB) +test_urcu_lfq_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB) test_urcu_wfq_SOURCES = test_urcu_wfq.c $(COMPAT) test_urcu_wfq_LDADD = $(URCU_COMMON_LIB) @@ -171,19 +176,19 @@ test_urcu_wfcq_dynlink_SOURCES = test_urcu_wfcq.c test_urcu_wfcq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) test_urcu_wfcq_dynlink_LDADD = $(URCU_COMMON_LIB) -test_urcu_lfs_SOURCES = test_urcu_lfs.c $(URCU) -test_urcu_lfs_LDADD = $(URCU_CDS_LIB) +test_urcu_lfs_SOURCES = test_urcu_lfs.c +test_urcu_lfs_LDADD = $(URCU_LIB) $(URCU_CDS_LIB) -test_urcu_lfs_rcu_SOURCES = test_urcu_lfs_rcu.c $(URCU) -test_urcu_lfs_rcu_LDADD = $(URCU_CDS_LIB) +test_urcu_lfs_rcu_SOURCES = test_urcu_lfs_rcu.c +test_urcu_lfs_rcu_LDADD = $(URCU_LIB) $(URCU_CDS_LIB) -test_urcu_lfs_dynlink_SOURCES = test_urcu_lfs.c $(URCU) +test_urcu_lfs_dynlink_SOURCES = test_urcu_lfs.c test_urcu_lfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) -test_urcu_lfs_dynlink_LDADD = $(URCU_CDS_LIB) +test_urcu_lfs_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB) -test_urcu_lfs_rcu_dynlink_SOURCES = test_urcu_lfs_rcu.c $(URCU) +test_urcu_lfs_rcu_dynlink_SOURCES = test_urcu_lfs_rcu.c test_urcu_lfs_rcu_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) -test_urcu_lfs_rcu_dynlink_LDADD = $(URCU_CDS_LIB) +test_urcu_lfs_rcu_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB) test_urcu_wfs_SOURCES = test_urcu_wfs.c $(COMPAT) test_urcu_wfs_LDADD = $(URCU_COMMON_LIB)