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