[ofa-general] [PATCH] infiniband-diags/Makefile.am: use common library

Sasha Khapyorsky sashak at voltaire.com
Thu Jan 22 05:11:15 PST 2009


Use common static library libcommon.a for all tools.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 infiniband-diags/Makefile.am |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/infiniband-diags/Makefile.am b/infiniband-diags/Makefile.am
index fe83beb..f9cc5bd 100644
--- a/infiniband-diags/Makefile.am
+++ b/infiniband-diags/Makefile.am
@@ -32,23 +32,27 @@ sbin_SCRIPTS = scripts/ibcheckerrs scripts/ibchecknet scripts/ibchecknode \
 	       scripts/ibfindnodesusing.pl scripts/ibidsverify.pl \
 	       scripts/check_lft_balance.pl
 
+noinst_LIBRARIES = libcommon.a
+
 AM_CFLAGS = -Wall $(DBGFLAGS)
+LDADD = libcommon.a
 
-src_ibaddr_SOURCES = src/ibaddr.c src/ibdiag_common.c
-src_ibnetdiscover_SOURCES = src/ibnetdiscover.c src/grouping.c src/ibdiag_common.c
-src_ibping_SOURCES = src/ibping.c src/ibdiag_common.c
-src_ibportstate_SOURCES = src/ibportstate.c src/ibdiag_common.c
-src_ibroute_SOURCES = src/ibroute.c src/ibdiag_common.c
+libcommon_a_SOURCES = src/ibdiag_common.c
+src_ibaddr_SOURCES = src/ibaddr.c
+src_ibnetdiscover_SOURCES = src/ibnetdiscover.c src/grouping.c
+src_ibping_SOURCES = src/ibping.c
+src_ibportstate_SOURCES = src/ibportstate.c
+src_ibroute_SOURCES = src/ibroute.c
 src_ibstat_SOURCES = src/ibstat.c
-src_ibsysstat_SOURCES = src/ibsysstat.c src/ibdiag_common.c
-src_ibtracert_SOURCES = src/ibtracert.c src/ibdiag_common.c
-src_perfquery_SOURCES = src/perfquery.c src/ibdiag_common.c
-src_sminfo_SOURCES = src/sminfo.c src/ibdiag_common.c
+src_ibsysstat_SOURCES = src/ibsysstat.c
+src_ibtracert_SOURCES = src/ibtracert.c
+src_perfquery_SOURCES = src/perfquery.c
+src_sminfo_SOURCES = src/sminfo.c
 src_smpdump_SOURCES = src/smpdump.c
-src_smpquery_SOURCES = src/smpquery.c src/ibdiag_common.c
-src_saquery_SOURCES = src/saquery.c src/ibdiag_common.c
-src_ibsendtrap_SOURCES = src/ibsendtrap.c src/ibdiag_common.c
-src_vendstat_SOURCES = src/vendstat.c src/ibdiag_common.c
+src_smpquery_SOURCES = src/smpquery.c
+src_saquery_SOURCES = src/saquery.c
+src_ibsendtrap_SOURCES = src/ibsendtrap.c
+src_vendstat_SOURCES = src/vendstat.c
 src_mcm_rereg_test_SOURCES = src/mcm_rereg_test.c
 
 man_MANS = man/ibaddr.8 man/ibcheckerrors.8 man/ibcheckerrs.8 \
-- 
1.6.0.4.766.g6fc4a




More information about the general mailing list