bsd.snmpmod.mk(7)

NAME

bsd.snmpmod.mk - building modules for bsnmpd(1)

SYNOPSIS DESCRIPTION

The file #include <bsd.snmpmod.mk> simplifies the building of modules for the Begemot SNMP dae
mon,
bsnmpd(1). It provides some common functions for building a
module and
relies on which is included by #include <bsd.snmpmod.mk> to actually build the shared library.
The following make(1) variables control the special func
tions:
MOD The short name of the module. The name of
the shared
library will be snmp_${MOD}.so. There
must exist a
file ${MOD}_tree.def for compilation with gensnmptree(1) which contains the defini
tion of the MIB
tree implemented by the module.
EXTRAMIBDEFS A list of extra MIB definition files for
gensnmptree(1). This is optional.
XSYM A list of symbols to be extracted from the
MIB defini
tion files by gensnmptree(1). This is op
tional.
DEFS A list of MIB definition files to be in
stalled. This
is optional.
BMIBS A list of textual MIBs to be installed.
This is
optional.
Three files are automatically created from the MIB defini
tion files and
the XSYM variable:
${MOD}_tree.c This contains a table with the tree imple
mented by the
module. It is automatically included into
the SRCS
variable.
${MOD}_tree.h This contains preprocessor defines for all
the OIDs
defined by the module and can be included
in the module's source code.
${MOD}_oid.h OID preprocessor definitions for all the
symbols listed
in XSYMS. This is to be included into the
module's
source code.

SEE ALSO

bsnmpd(1), gensnmptree(1), snmpmod(3)
BSD November 10, 2005
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout