2003-11-10 09:17:34 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-01-19 19:26:02 +00:00
|
|
|
SHLIB_NAME= snmp_${MOD}.so.${SHLIB_MAJOR}
|
2004-01-23 16:22:49 +00:00
|
|
|
SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
|
|
|
|
CLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
|
|
|
|
CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I.
|
|
|
|
|
|
|
|
${MOD}_oid.h: ${MOD}_tree.def
|
|
|
|
gensnmptree -e ${XSYM} < ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
|
|
|
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def
|
|
|
|
gensnmptree -l -p ${MOD}_ < ${.ALLSRC}
|
2003-11-10 09:17:34 +00:00
|
|
|
|
2004-01-19 19:26:02 +00:00
|
|
|
.if defined(DEFS)
|
|
|
|
FILESGROUPS+= DEFS
|
|
|
|
DEFSDIR= ${SHAREDIR}/bsnmp/defs
|
|
|
|
.endif
|
2003-11-10 09:17:34 +00:00
|
|
|
|
2004-01-24 20:12:30 +00:00
|
|
|
.if defined(BMIBS)
|
|
|
|
FILESGROUPS+= BMIBS
|
|
|
|
BMIBSDIR= ${SHAREDIR}/bsnmp/mibs
|
2004-01-19 19:26:02 +00:00
|
|
|
.endif
|
2003-11-10 09:17:34 +00:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|