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:
Hartmut Brandt 2004-08-09 16:37:25 +00:00
parent 9856b0ba40
commit a566bd48a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133392
2 changed files with 8 additions and 8 deletions

View File

@ -5,12 +5,12 @@ 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}
${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
gensnmptree -l -p ${MOD}_ < ${.ALLSRC}
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_
.if defined(DEFS)
FILESGROUPS+= DEFS

View File

@ -5,12 +5,12 @@ 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}
${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
gensnmptree -l -p ${MOD}_ < ${.ALLSRC}
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
cat ${.ALLSRC} | gensnmptree -l -p ${MOD}_
.if defined(DEFS)
FILESGROUPS+= DEFS