You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/modules_k/snmpstats/Makefile

35 lines
815 B

# $Id$
#
# WARNING: do not run this directly, it should be run by the master Makefile
include ../../Makefile.defs
BUILDER = $(shell which net-snmp-config)
ifeq ($(BUILDER),)
DEFS +=-I$(LOCALBASE)/include
BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs -lnetsnmpagent \
-lnetsnmphelpers -lnetsnmp
INSTALLMIBDIR = $(cfg-prefix)/share/snmp/mibs
else
BUILDAGENTLIBS = $(shell net-snmp-config --netsnmp-agent-libs)
INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config --prefix)/share/snmp/mibs
endif
CFLAGS+=
auto_gen=
NAME=snmpstats.so
LIBS=$(BUILDAGENTLIBS)
DEFS+=-DOPENSER_MOD_INTERFACE
SERLIBPATH=../../lib
SER_LIBS+=$(SERLIBPATH)/kcore/kcore
include ../../Makefile.modules
install_module_custom:
echo "installing mibs ..."
mkdir -p $(INSTALLMIBDIR)
$(INSTALL_CFG) mibs/OPENSER* $(INSTALLMIBDIR)