
This is the building file that archive libnl3, libbridge and libnetwork itself's code into one dynamic library. Signed-off-by: Wayne Xia <xiawenc@linux.vnet.ibm.com> --- libnetwork/Makefile.am | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 libnetwork/Makefile.am diff --git a/libnetwork/Makefile.am b/libnetwork/Makefile.am new file mode 100644 index 0000000..afba670 --- /dev/null +++ b/libnetwork/Makefile.am @@ -0,0 +1,39 @@ +# Copyright IBM Corp. 2011 +# Auther: +# Wenchao Xia, <xiawenc@cn.ibm.com> +# +# Try build a dynamic library libnetwork.so, which +# include libnl-3 and libbridge binaries. Doing this is +# because there is no devel-libbridge.rpm, and there are +# many program still using libnl1.so, which conflicts with +# libnl-3. +# Exported symbols are strictly limited by Macro DLL_PUBLIC +# to reduce name space polution. +# It need libcmpiutil to use CU_DEBUG facility. +# A test program is generated named as libnetwork_test. + +SUBDIRS = libbridge libnl3 + +LDFLAGS = $(LIBNETWORK_DEFINES) + +AM_CFLAGS = $(CFLAGS_STRICT) \ + -DLIBVIRTCIM_CONF=\"@sysconfdir@/@PACKAGE@.conf\" \ + $(LIBNETWORK_CFLAGS) $(LIBNETWORK_DEFINES) -I$(top_srcdir)/libnetwork/libnl3/include + + +noinst_HEADERS = host_network_API.h host_network_basic.h host_network_helper.h host_network_error.h \ + host_network_implement_OSAPI.h dll_magic.h + +lib_LTLIBRARIES = libnetwork.la + +libnetwork_la_SOURCES = host_network_API.c host_network_basic.c host_network_helper.c \ + host_network_implement_OSAPI.c +libnetwork_la_LDFLAGS = -version-info @VERSION_INFO@ -lcmpiutil +libnetwork_la_LIBADD = libbridge/libbridge.la \ + libnl3/lib/libnl-route-3-4cim.la + +noinst_PROGRAMS = libnetwork_test + +libnetwork_test_SOURCES = libnetwork_test.c +libnetwork_test_LDFLAGS = -lcmpiutil +libnetwork_test_LDADD = libnetwork.la -- 1.7.6