diff options
author | Mark Spencer <markster@digium.com> | 2006-02-26 20:46:11 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-02-26 20:46:11 +0000 |
commit | 6a86c7c5c90c3452e8a85141b87bdffec40dd914 (patch) | |
tree | dc11dea95379b474e67d6e7b12cff34e6154e4e4 /res/Makefile | |
parent | 16109b9d2ce63dbc484665b31f6de94f4a7dfbd4 (diff) |
Add SNMP support (bug #6439)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/Makefile')
-rw-r--r-- | res/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile index 2759f4e49..08ee8e14a 100644 --- a/res/Makefile +++ b/res/Makefile @@ -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 |