Makefile.inc revision 143601
1122405Sharti# $FreeBSD: head/usr.sbin/bsnmpd/modules/Makefile.inc 143601 2005-03-14 17:32:16Z harti $ 2122405Sharti 3143601ShartiSHLIB_MAJOR= 2 4143601ShartiWARNS?= 6 5143601ShartiINCSDIR= ${INCLUDEDIR}/bsnmp 6143601Sharti 7124726SruSHLIB_NAME= snmp_${MOD}.so.${SHLIB_MAJOR} 8124873ShartiSRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h 9124873ShartiCLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h 10124873ShartiCFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I. 11122405Sharti 12133392Sharti${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 13133392Sharti cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET} 14124873Sharti 15124873Sharti.ORDER: ${MOD}_tree.c ${MOD}_tree.h 16133392Sharti${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS} 17133392Sharti cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_ 18124873Sharti 19124726Sru.if defined(DEFS) 20124726SruFILESGROUPS+= DEFS 21124726Sru.endif 22128234ShartiDEFSDIR= ${SHAREDIR}/snmp/defs 23122405Sharti 24124926Sharti.if defined(BMIBS) 25124926ShartiFILESGROUPS+= BMIBS 26124726Sru.endif 27128234ShartiBMIBSDIR= ${SHAREDIR}/snmp/mibs 28122405Sharti 29128242ShartiMANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \ 30128242Sharti -e 's%@DEFPATH@%${DEFSDIR}/%g' \ 31128242Sharti -e 's%@MIBSPATH@%${BMIBSDIR}/%g' 32