Add SNMP support (bug #6439)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2006-02-26 20:46:11 +00:00
parent 16109b9d2c
commit 6a86c7c5c9
8 changed files with 1821 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ ifeq (${OSPLIB},)
MODS:=$(filter-out res_osp.so,$(MODS))
endif
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/net-snmp/net-snmp-config.h),)
SNMP_LDLIBS+=$(shell net-snmp-config --agent-libs)
MODS+=res_snmp.so
endif
ifeq (${WITH_SMDI},)
MODS:=$(filter-out res_smdi.so,$(MODS))
endif
@@ -108,6 +113,9 @@ res_features.so: res_features.o
res_config_odbc.so: res_config_odbc.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} ${CYG_RES_CONFIG_ODBC_LIB}
res_snmp.so: res_snmp.o snmp/agent.o
$(CC) $(SOLINK) ${SNMP_LDFLAGS} -o $@ ${CYGSOLINK} res_snmp.o snmp/agent.o ${CYGSOLIB} ${SNMP_LDLIBS}
ifneq ($(wildcard .depend),)
include .depend
endif