X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=snmp%2FMakefile.am;h=f7d114c2920a6565a499ea2fc477bba80dfd4e97;hp=729031a9d949e6393d8de6c6c78b11cdd9fa2b83;hb=875f3fc03aa15049892fe19d6a4fc1132848fced;hpb=3e8c354c09725a97b90e477a77411cc6fb306f09 diff --git a/snmp/Makefile.am b/snmp/Makefile.am index 729031a..f7d114c 100644 --- a/snmp/Makefile.am +++ b/snmp/Makefile.am @@ -1,7 +1,7 @@ -agent_LTLIBRARIES = lustresnmp.la +agent_LTLIBRARIES = liblustresnmp.la mib_DATA = Lustre-MIB.txt -lustresnmp_la_SOURCES = \ +liblustresnmp_la_SOURCES = \ lustre-snmp.c \ lustre-snmp.h \ lustre-snmp-trap.c \ @@ -9,9 +9,11 @@ lustresnmp_la_SOURCES = \ lustre-snmp-util.c \ lustre-snmp-util.h -lustresnmp_la_LIBADD := $(NET_SNMP_LIBS) -lustresnmp_la_CFLAGS := -fPIC $(NET_SNMP_CFLAGS) -lustresnmp_la_LDFLAGS = -fPIC -shared -module -avoid-version +LIBCFS = $(top_builddir)/libcfs/libcfs/libcfs.la + +liblustresnmp_la_CFLAGS := $(NET_SNMP_CFLAGS) +liblustresnmp_la_LIBADD := $(NET_SNMP_LIBS) $(LIBCFS) +liblustresnmp_la_LDFLAGS := -version-info 1:0:0 SUBDIRS = DIST_SUBDIRS = autoconf