aboutsummaryrefslogtreecommitdiffstats
path: root/res/Makefile
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-26 20:46:11 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-26 20:46:11 +0000
commit9dc45031753b6c466b322dd105af10a156c11eaa (patch)
treedc11dea95379b474e67d6e7b12cff34e6154e4e4 /res/Makefile
parent181407f0739de8cfd78f71645cbc49f5063996c2 (diff)
Add SNMP support (bug #6439)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11193 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/Makefile')
-rw-r--r--res/Makefile8
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