Makefile.inc revision 148297
1# $FreeBSD: head/usr.sbin/bsnmpd/modules/Makefile.inc 148297 2005-07-22 17:19:05Z kensmith $ 2 3SHLIB_MAJOR= 4 4WARNS?= 6 5INCSDIR= ${INCLUDEDIR}/bsnmp 6 7SHLIB_NAME= snmp_${MOD}.so.${SHLIB_MAJOR} 8SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h 9CLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h 10CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I. 11 12${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 13 cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET} 14 15.ORDER: ${MOD}_tree.c ${MOD}_tree.h 16${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 17 cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_ 18 19.if defined(DEFS) 20FILESGROUPS+= DEFS 21.endif 22DEFSDIR= ${SHAREDIR}/snmp/defs 23 24.if defined(BMIBS) 25FILESGROUPS+= BMIBS 26.endif 27BMIBSDIR= ${SHAREDIR}/snmp/mibs 28 29MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \ 30 -e 's%@DEFPATH@%${DEFSDIR}/%g' \ 31 -e 's%@MIBSPATH@%${BMIBSDIR}/%g' 32