Makefile.inc revision 150928
1# $FreeBSD: head/usr.sbin/bsnmpd/modules/Makefile.inc 150928 2005-10-04 15:03:39Z harti $ 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. 11CFLAGS+= -DQUADFMT='"llu"' -DQUADXFMT='"llx"' -DHAVE_STDINT_H 12CFLAGS+= -DHAVE_INTTYPES_H 13 14${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 15 cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET} 16 17.ORDER: ${MOD}_tree.c ${MOD}_tree.h 18${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 19 cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_ 20 21.if defined(DEFS) 22FILESGROUPS+= DEFS 23.endif 24DEFSDIR= ${SHAREDIR}/snmp/defs 25 26.if defined(BMIBS) 27FILESGROUPS+= BMIBS 28.endif 29BMIBSDIR= ${SHAREDIR}/snmp/mibs 30 31MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \ 32 -e 's%@DEFPATH@%${DEFSDIR}/%g' \ 33 -e 's%@MIBSPATH@%${BMIBSDIR}/%g' 34