[openib-general] [PATCH] libibcm building

Hal Rosenstock halr at voltaire.com
Fri May 13 07:22:53 PDT 2005


Hi Libor,

A couple of minor libibcm building comments:

1. When running autogen.sh, it warns about:
Makefile.am:19: variable `ucm_version_script' not defined

2. example/simple is not built by the current makefile generated. Below
is a patch for this.

-- Hal

Add building of simple example for user CM to generated makefile

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 2331)
+++ Makefile.am	(working copy)
@@ -5,7 +5,7 @@
 
 ibcmlibdir = $(libdir)/infiniband
 
-ibcmlib_LTLIBRARIES = src/ibcm.la
+ibcmlib_LTLIBRARIES = src/libibcm.la
 
 src_ibcm_la_CFLAGS = -g -Wall -D_GNU_SOURCE
 
@@ -15,9 +15,13 @@
     ibcm_version_script =
 endif
 
-src_ibcm_la_SOURCES = src/cm.c
-src_ibcm_la_LDFLAGS = -avoid-version -module $(ucm_version_script)
+src_libibcm_la_SOURCES = src/cm.c
+src_libibcm_la_LDFLAGS = -avoid-version -module $(ucm_version_script)
 
+bin_PROGRAMS = examples/ucm_simple
+examples_ucm_simple_SOURCES = examples/simple.c
+examples_ucm_simple_LDADD = $(top_builddir)/src/libibcm.la
+
 libibcmincludedir = $(includedir)/infiniband
 
 libibcminclude_HEADERS = include/infiniband/cm_abi.h \






More information about the general mailing list