]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/bsnmpd/modules/Makefile.inc
This commit was generated by cvs2svn to compensate for changes in r142425,
[FreeBSD/FreeBSD.git] / usr.sbin / bsnmpd / modules / Makefile.inc
1 # $FreeBSD$
2
3 SHLIB_NAME=     snmp_${MOD}.so.${SHLIB_MAJOR}
4 SRCS+=          ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
5 CLEANFILES+=    ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
6 CFLAGS+=        -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I.
7
8 ${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
9         cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
10
11 .ORDER: ${MOD}_tree.c ${MOD}_tree.h
12 ${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
13         cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_
14
15 .if defined(DEFS)
16 FILESGROUPS+=   DEFS
17 .endif
18 DEFSDIR=        ${SHAREDIR}/snmp/defs
19
20 .if defined(BMIBS)
21 FILESGROUPS+=   BMIBS
22 .endif
23 BMIBSDIR=       ${SHAREDIR}/snmp/mibs
24
25 MANFILTER=      sed -e 's%@MODPATH@%${LIBDIR}/%g'               \
26                     -e 's%@DEFPATH@%${DEFSDIR}/%g'              \
27                     -e 's%@MIBSPATH@%${BMIBSDIR}/%g'
28
29 .include "../Makefile.inc"