From 2b72a67dd0012c94bcfc62cc7de34880dd2ea1a8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 1 Jun 2012 13:58:31 -0400 Subject: [PATCH] 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 --- tests/Makefile.am | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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) -- 2.34.1