mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user