summaryrefslogtreecommitdiff
path: root/share/mk/bsd.snmpmod.mk
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2018-07-03 08:44:40 +0000
committerHartmut Brandt <harti@FreeBSD.org>2018-07-03 08:44:40 +0000
commit8e9b3e707151d136ec95e7f1d37556e39c1e228c (patch)
tree0bf4cf04b0aa2c25155c8b45a1704512517c9127 /share/mk/bsd.snmpmod.mk
parent4dc1b29b7169560aa0a16bb3488dac17325767f0 (diff)
downloadsrc-test2-8e9b3e707151d136ec95e7f1d37556e39c1e228c.tar.gz
src-test2-8e9b3e707151d136ec95e7f1d37556e39c1e228c.zip
Notes
Diffstat (limited to 'share/mk/bsd.snmpmod.mk')
-rw-r--r--share/mk/bsd.snmpmod.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/mk/bsd.snmpmod.mk b/share/mk/bsd.snmpmod.mk
index 224b82d1ee0b..c45937cc82a7 100644
--- a/share/mk/bsd.snmpmod.mk
+++ b/share/mk/bsd.snmpmod.mk
@@ -6,14 +6,16 @@ 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
CFLAGS+= -I.
+GENSNMPTREEFLAGS+= -I${SHAREDIR}/snmpdefs
+
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS}
- cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
+ cat ${.ALLSRC} | gensnmptree ${GENSNMPTREEFLAGS} -e ${XSYM} > ${.TARGET}
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
${MOD}_tree.h: .NOMETA
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
- cat ${.ALLSRC} | gensnmptree -p ${MOD}_
+ cat ${.ALLSRC} | gensnmptree -f ${GENSNMPTREEFLAGS} -p ${MOD}_
.if defined(DEFS)
FILESGROUPS+= DEFS