X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=snmp%2FMakefile.am;h=f7d114c2920a6565a499ea2fc477bba80dfd4e97;hb=d8b19ae6617733df003a906aca1791791a5f0eff;hp=fe2a153e4227db0379279338316edd08d02320e4;hpb=ca6bdcd8e8d3e01dd4ad56312efa3dd7657e6dda;p=fs%2Flustre-release.git diff --git a/snmp/Makefile.am b/snmp/Makefile.am index fe2a153..f7d114c 100644 --- a/snmp/Makefile.am +++ b/snmp/Makefile.am @@ -1,7 +1,7 @@ -agent_PROGRAMS = lustresnmp.so +agent_LTLIBRARIES = liblustresnmp.la mib_DATA = Lustre-MIB.txt -lustresnmp_so_SOURCES = \ +liblustresnmp_la_SOURCES = \ lustre-snmp.c \ lustre-snmp.h \ lustre-snmp-trap.c \ @@ -9,9 +9,11 @@ lustresnmp_so_SOURCES = \ lustre-snmp-util.c \ lustre-snmp-util.h -lustresnmp_so_LDADD := $(NET_SNMP_LIBS) -lustresnmp_so_CFLAGS := -fPIC $(NET_SNMP_CFLAGS) -lustresnmp_so_LDFLAGS = -fPIC -shared +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