X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=snmp%2FMakefile.am;h=453f3fffc720e056b3d010e1043a1b5d9c244ca9;hb=a0a812d2b019b97356b0d6a1a8debd7d46fed00b;hp=40658ab995e9104cafc4612f838dfcaf90093b64;hpb=50c49c7824a5563de6328885577581ececff6106;p=fs%2Flustre-release.git diff --git a/snmp/Makefile.am b/snmp/Makefile.am index 40658ab..453f3ff 100644 --- a/snmp/Makefile.am +++ b/snmp/Makefile.am @@ -1,7 +1,7 @@ -agent_PROGRAMS := lustresnmp.so -mib_DATA := Lustre-MIB.txt +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,11 +9,13 @@ 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.a -SUBDIRS := -DIST_SUBDIRS := autoconf +liblustresnmp_la_CFLAGS := $(NET_SNMP_CFLAGS) +liblustresnmp_la_LIBADD := $(NET_SNMP_LIBS) $(LIBCFS) +liblustresnmp_la_LDFLAGS := -version-info 1:0:0 -EXTRA_DIST := $(mib_DATA) +SUBDIRS = +DIST_SUBDIRS = autoconf + +EXTRA_DIST = $(mib_DATA)