3 INCSDIR= ${INCLUDEDIR}/bsnmp
5 SHLIB_NAME= snmp_${MOD}.so.${SHLIB_MAJOR}
6 SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
7 CLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
9 GENSNMPTREEFLAGS+= -I${SHAREDIR}/snmpdefs
12 ${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS}
13 cat ${.ALLSRC} | gensnmptree ${GENSNMPTREEFLAGS} -e ${XSYM} > ${.TARGET}
15 # Multi-output targets both expect a .meta file and will fight over it. Only
16 # allow it on the .c file instead.
17 ${MOD}_tree.h: ${MOD}_tree.c .NOMETA
18 # Force rebuild the .c file if any of its other outputs are missing.
19 .if !exists(${MOD}_tree.h)
20 ${MOD}_tree.c: .PHONY .META
22 ${MOD}_tree.c: ${MOD}_tree.def ${EXTRAMIBDEFS}
23 cat ${.ALLSRC} | gensnmptree -f ${GENSNMPTREEFLAGS} -p ${MOD}_
27 DEFSDIR?= ${SHAREDIR}/snmp/defs
32 BMIBSDIR?= ${SHAREDIR}/snmp/mibs
35 .if !target(smilint) && !empty(BMIBS)
36 LOCALBASE?= /usr/local
38 SMILINT?= ${LOCALBASE}/bin/smilint
40 SMIPATH?= ${BMIBSDIR}:${LOCALBASE}/share/snmp/mibs
42 SMILINT_FLAGS?= -c /dev/null -l6 -i group-membership
45 SMIPATH=${SMIPATH} ${SMILINT} ${SMILINT_FLAGS} ${.ALLSRC}