[ofa-general] Re: [PATCH 1/3 - no ibcommon] Create a new library libibnetdisc

Sasha Khapyorsky sashak at voltaire.com
Wed Jan 21 07:50:07 PST 2009


On 15:47 Fri 09 Jan     , Ira Weiny wrote:
> From 677ca6d7ead4b720b2ba260cb35aca429190b6e8 Mon Sep 17 00:00:00 2001
> From: Ira Weiny <weiny2 at llnl.gov>
> Date: Wed, 26 Nov 2008 12:54:47 -0800
> Subject: [PATCH] Create a new library libibnetdisc

Some more...

[snip...]

> diff --git a/infiniband-diags/libibnetdisc/Makefile.am b/infiniband-diags/libibnetdisc/Makefile.am
> new file mode 100644
> index 0000000..8e0e16b
> --- /dev/null
> +++ b/infiniband-diags/libibnetdisc/Makefile.am
> @@ -0,0 +1,62 @@
> +
> +#SUBDIRS = .
> +
> +INCLUDES = -I$(srcdir)/include -I$(includedir) -I$(includedir)/infiniband
> +
> +lib_LTLIBRARIES = libibnetdisc.la
> +sbin_PROGRAMS =
> +
> +if ENABLE_TEST_UTILS
> +sbin_PROGRAMS += test/ibnetdisctest \
> +                 test/iblinkinfotest \
> +                 test/testleaks
> +endif
> +
> +DBGFLAGS = -g
> +
> +if HAVE_LD_VERSION_SCRIPT
> +libibnetdisc_version_script = -Wl,--version-script=$(srcdir)/src/libibnetdisc.map
> +else
> +libibnetdisc_version_script =
> +endif
> +
> +libibnetdisc_la_SOURCES = src/ibnetdisc.c src/chassis.c src/chassis.h
> +libibnetdisc_la_CFLAGS = -Wall $(DBGFLAGS)
> +libibnetdisc_la_LDFLAGS = -version-info $(ibnetdisc_api_version) \
> +	-export-dynamic $(libibnetdisc_version_script) \
> +	-losmcomp -libmad

I don't really see where libosmcomp is used in libibnetdisc, likely this
flag (-losmcomp) should go to test tools.

> +libibnetdisc_la_DEPENDENCIES = $(srcdir)/src/libibnetdisc.map
> +
> +libibnetdiscincludedir = $(includedir)/infiniband
> +
> +test_ibnetdisctest_SOURCES = test/ibnetdisctest.c
> +test_ibnetdisctest_CFLAGS = -Wall $(DBGFLAGS)
> +test_ibnetdisctest_LDFLAGS = -libnetdisc
> +
> +test_iblinkinfotest_SOURCES = test/iblinkinfotest.c
> +test_iblinkinfotest_CFLAGS = -Wall $(DBGFLAGS)
> +test_iblinkinfotest_LDFLAGS = -libnetdisc
> +
> +test_testleaks_SOURCES = test/testleaks.c
> +test_testleaks_CFLAGS = -Wall $(DBGFLAGS)
> +test_testleaks_LDFLAGS = -libnetdisc
> +
> +libibnetdiscinclude_HEADERS = $(srcdir)/include/infiniband/ibnetdisc.h
> +
> +man_MANS = man/ibnd_debug.3 \
> +	man/ibnd_destroy_fabric.3 \
> +	man/ibnd_discover_fabric.3 \
> +	man/ibnd_find_node_dr.3 \
> +	man/ibnd_find_node_guid.3 \
> +	man/ibnd_iter_nodes.3 \
> +	man/ibnd_iter_nodes_type.3 \
> +	man/ibnd_linkspeed_str.3 \
> +	man/ibnd_linkstate_str.3 \
> +	man/ibnd_linkwidth_str.3 \
> +	man/ibnd_node_type_str.3 \
> +	man/ibnd_physstate_str.3 \
> +	man/ibnd_update_node.3 \
> +	man/ibnd_show_progress.3
> +
> +EXTRA_DIST = $(srcdir)/src/libibnetdisc.map libibnetdisc.ver autogen.sh
> +

There is no 'autogen.sh' in libibnetdisc.

Sasha



More information about the general mailing list