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.include <bsd.lib.mk> 29