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.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 15 cat ${.ALLSRC} | gensnmptree -p ${MOD}_ 16 17.if defined(DEFS) 18FILESGROUPS+= DEFS 19DEFSDIR= ${SHAREDIR}/snmp/defs 20.endif 21 22.if defined(BMIBS) 23FILESGROUPS+= BMIBS 24BMIBSDIR= ${SHAREDIR}/snmp/mibs 25.endif 26 27.include <bsd.lib.mk> 28