2005-11-10 10:03:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
INCSDIR= ${INCLUDEDIR}/bsnmp
|
|
|
|
|
|
|
|
SHLIB_NAME= snmp_${MOD}.so.${SHLIB_MAJOR}
|
|
|
|
SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
|
|
|
|
CLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
|
2005-11-10 12:07:12 +00:00
|
|
|
CFLAGS+= -I.
|
2005-11-10 10:03:22 +00:00
|
|
|
|
|
|
|
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
|
|
|
cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
|
|
|
|
|
|
|
|
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
|
|
|
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
|
|
|
cat ${.ALLSRC} | gensnmptree -p ${MOD}_
|
|
|
|
|
|
|
|
.if defined(DEFS)
|
|
|
|
FILESGROUPS+= DEFS
|
|
|
|
DEFSDIR= ${SHAREDIR}/snmp/defs
|
2005-11-10 12:07:12 +00:00
|
|
|
.endif
|
2005-11-10 10:03:22 +00:00
|
|
|
|
|
|
|
.if defined(BMIBS)
|
|
|
|
FILESGROUPS+= BMIBS
|
|
|
|
BMIBSDIR= ${SHAREDIR}/snmp/mibs
|
2005-11-10 12:07:12 +00:00
|
|
|
.endif
|
2005-11-10 10:03:22 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|