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
|
|
|
|
2008-01-08 12:55:56 +00:00
|
|
|
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS}
|
2005-11-10 10:03:22 +00:00
|
|
|
cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
|
|
|
|
|
|
|
|
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
2016-06-03 19:25:41 +00:00
|
|
|
${MOD}_tree.h: .NOMETA
|
2005-11-10 10:03:22 +00:00
|
|
|
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
|
|
|
cat ${.ALLSRC} | gensnmptree -p ${MOD}_
|
|
|
|
|
|
|
|
.if defined(DEFS)
|
|
|
|
FILESGROUPS+= DEFS
|
2015-12-14 22:42:05 +00:00
|
|
|
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
|
2015-12-14 22:42:05 +00:00
|
|
|
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>
|