summaryrefslogtreecommitdiffstats
path: root/components.mk
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2005-03-28 23:53:31 +0000
committerNathan Kinder <nkinder@redhat.com>2005-03-28 23:53:31 +0000
commitcf3fe16e4e3f31280be2eb194eb3c022e7b3e5d3 (patch)
tree0012aad4cab5c5ac2d8db288cf1cbbd8cfbeaecc /components.mk
parent54fdf73874abce4f4f5adaaa4d7782113cfd2264 (diff)
downloadds-cf3fe16e4e3f31280be2eb194eb3c022e7b3e5d3.tar.gz
ds-cf3fe16e4e3f31280be2eb194eb3c022e7b3e5d3.tar.xz
ds-cf3fe16e4e3f31280be2eb194eb3c022e7b3e5d3.zip
Enable building of SNMP subagent
Diffstat (limited to 'components.mk')
-rw-r--r--components.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/components.mk b/components.mk
index b9652e9a..15d4e053 100644
--- a/components.mk
+++ b/components.mk
@@ -358,6 +358,24 @@ else
endif
###########################################################
+### Net-SNMP package ######################################
+ifdef NETSNMP_SOURCE_ROOT
+ NETSNMP_LIBPATH = $(NETSNMP_SOURCE_ROOT)/lib
+ NETSNMP_INCDIR = $(NETSNMP_SOURCE_ROOT)/include
+else
+ NETSNMP_LIBPATH = $(NETSNMP_BUILD_DIR)/lib
+ NETSNMP_INCDIR = $(NETSNMP_BUILD_DIR)/include
+endif
+
+NETSNMP_INCLUDE = -I$(NETSNMP_INCDIR)
+NETSNMP_LIBNAMES = netsnmp netsnmpagent netsnmpmibs netsnmphelpers
+NETSNMP_LINK = -L$(NETSNMP_LIBPATH) $(addprefix -l, $(NETSNMP_LIBNAMES))
+ifneq ($(ARCH), WINNT)
+ NETSNMP_SOLIBS = $(addsuffix .$(DLL_SUFFIX).5, $(addprefix $(LIB_PREFIX), $(NETSNMP_LIBNAMES)))
+ LIBS_TO_PKG += $(addprefix $(NETSNMP_LIBPATH)/,$(NETSNMP_SOLIBS))
+endif
+###########################################################
+
### ICU package ##########################################
ICU_LIB_VERSION = 24