]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/bsnmpd/modules/Makefile.inc
This commit was generated by cvs2svn to compensate for changes in r146611,
[FreeBSD/FreeBSD.git] / usr.sbin / bsnmpd / modules / Makefile.inc
1 # $FreeBSD$
2
3 SHLIB_MAJOR=    3
4 WARNS?=         6
5 INCSDIR=        ${INCLUDEDIR}/bsnmp
6
7 SHLIB_NAME=     snmp_${MOD}.so.${SHLIB_MAJOR}
8 SRCS+=          ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
9 CLEANFILES+=    ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
10 CFLAGS+=        -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)
20 FILESGROUPS+=   DEFS
21 .endif
22 DEFSDIR=        ${SHAREDIR}/snmp/defs
23
24 .if defined(BMIBS)
25 FILESGROUPS+=   BMIBS
26 .endif
27 BMIBSDIR=       ${SHAREDIR}/snmp/mibs
28
29 MANFILTER=      sed -e 's%@MODPATH@%${LIBDIR}/%g'               \
30                     -e 's%@DEFPATH@%${DEFSDIR}/%g'              \
31                     -e 's%@MIBSPATH@%${BMIBSDIR}/%g'