Now that gensnmptree can read and merge more than one tree make
the rule so that the tree .c and .h files can be produced from several trees.
This commit is contained in:
parent
9856b0ba40
commit
a566bd48a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133392
@ -5,12 +5,12 @@ SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
|
|||||||
CLEANFILES+= ${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.
|
CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I.
|
||||||
|
|
||||||
${MOD}_oid.h: ${MOD}_tree.def
|
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
||||||
gensnmptree -e ${XSYM} < ${.ALLSRC} > ${.TARGET}
|
cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
|
||||||
|
|
||||||
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
||||||
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def
|
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
||||||
gensnmptree -l -p ${MOD}_ < ${.ALLSRC}
|
cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_
|
||||||
|
|
||||||
.if defined(DEFS)
|
.if defined(DEFS)
|
||||||
FILESGROUPS+= DEFS
|
FILESGROUPS+= DEFS
|
||||||
|
@ -5,12 +5,12 @@ SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h
|
|||||||
CLEANFILES+= ${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.
|
CFLAGS+= -I${CONTRIB}/lib -I${CONTRIB}/snmpd -I.
|
||||||
|
|
||||||
${MOD}_oid.h: ${MOD}_tree.def
|
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
||||||
gensnmptree -e ${XSYM} < ${.ALLSRC} > ${.TARGET}
|
cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
|
||||||
|
|
||||||
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
||||||
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def
|
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
||||||
gensnmptree -l -p ${MOD}_ < ${.ALLSRC}
|
cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_
|
||||||
|
|
||||||
.if defined(DEFS)
|
.if defined(DEFS)
|
||||||
FILESGROUPS+= DEFS
|
FILESGROUPS+= DEFS
|
||||||
|
Loading…
Reference in New Issue
Block a user