1# $FreeBSD$ 2 3INCSDIR= ${INCLUDEDIR}/bsnmp 4 5SHLIB_NAME= snmp_${MOD}.so.${SHLIB_MAJOR} 6SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h 7CLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h 8CFLAGS+= -I. 9 10${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS} 11 cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET} 12 13.ORDER: ${MOD}_tree.c ${MOD}_tree.h 14${MOD}_tree.h: .NOMETA 15${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 16 cat ${.ALLSRC} | gensnmptree -p ${MOD}_ 17 18.if defined(DEFS) 19FILESGROUPS+= DEFS 20DEFSDIR?= ${SHAREDIR}/snmp/defs 21.endif 22 23.if defined(BMIBS) 24FILESGROUPS+= BMIBS 25BMIBSDIR?= ${SHAREDIR}/snmp/mibs 26.endif 27 28.if !target(smilint) && !empty(BMIBS) 29LOCALBASE?= /usr/local 30 31SMILINT?= ${LOCALBASE}/bin/smilint 32 33SMIPATH?= ${BMIBSDIR}:${LOCALBASE}/share/snmp/mibs 34 35SMILINT_FLAGS?= -c /dev/null -l6 -i group-membership 36 37smilint: ${BMIBS} 38 SMIPATH=${SMIPATH} ${SMILINT} ${SMILINT_FLAGS} ${.ALLSRC} 39.endif 40smilint: .PHONY 41 42.include <bsd.lib.mk> 43