From: Mathieu Desnoyers Date: Fri, 1 Jun 2012 17:58:31 +0000 (-0400) Subject: Fix tests: make dist lib dependency X-Git-Tag: v0.7.3~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2b72a67dd0012c94bcfc62cc7de34880dd2ea1a8;p=userspace-rcu.git Fix tests: make dist lib dependency Some test programs were depending in SOURCES on the CDS library. Change this for a LDADD, which makes "make dist" work after a make clean. Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 1b099c8..7d5ea82 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -155,22 +155,30 @@ test_urcu_bp_SOURCES = test_urcu_bp.c $(URCU_BP) test_urcu_bp_dynamic_link_SOURCES = test_urcu_bp.c $(URCU_BP) test_urcu_bp_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) -test_urcu_lfq_SOURCES = test_urcu_lfq.c $(URCU) $(URCU_CDS_LIB) +test_urcu_lfq_SOURCES = test_urcu_lfq.c $(URCU) +test_urcu_lfq_LDADD = $(URCU_CDS_LIB) + test_urcu_lfq_dynlink_SOURCES = test_urcu_lfq.c $(URCU) test_urcu_lfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) test_urcu_lfq_dynlink_LDADD = $(URCU_CDS_LIB) -test_urcu_wfq_SOURCES = test_urcu_wfq.c $(URCU_COMMON_LIB) $(COMPAT) +test_urcu_wfq_SOURCES = test_urcu_wfq.c $(COMPAT) +test_urcu_wfq_LDADD = $(URCU_COMMON_LIB) + test_urcu_wfq_dynlink_SOURCES = test_urcu_wfq.c test_urcu_wfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) test_urcu_wfq_dynlink_LDADD = $(URCU_COMMON_LIB) -test_urcu_lfs_SOURCES = test_urcu_lfs.c $(URCU) $(URCU_CDS_LIB) +test_urcu_lfs_SOURCES = test_urcu_lfs.c $(URCU) +test_urcu_lfs_LDADD = $(URCU_CDS_LIB) + test_urcu_lfs_dynlink_SOURCES = test_urcu_lfs.c $(URCU) test_urcu_lfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) test_urcu_lfs_dynlink_LDADD = $(URCU_CDS_LIB) -test_urcu_wfs_SOURCES = test_urcu_wfs.c $(URCU_COMMON_LIB) $(COMPAT) +test_urcu_wfs_SOURCES = test_urcu_wfs.c $(COMPAT) +test_urcu_wfs_LDADD = $(URCU_COMMON_LIB) + test_urcu_wfs_dynlink_SOURCES = test_urcu_wfs.c test_urcu_wfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) test_urcu_wfs_dynlink_LDADD = $(URCU_COMMON_LIB)