diff options
author | harti <harti@FreeBSD.org> | 2008-01-08 12:55:56 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2008-01-08 12:55:56 +0000 |
commit | 60c8b505d8964a8e39142ca0e3b55d953c519dd9 (patch) | |
tree | 37fc737a05f0ae5c366883f2d53bdf26e0e102b9 | |
parent | 7915a2d351ca79217bee12f193aa166cc8d565c0 (diff) | |
download | FreeBSD-src-60c8b505d8964a8e39142ca0e3b55d953c519dd9.zip FreeBSD-src-60c8b505d8964a8e39142ca0e3b55d953c519dd9.tar.gz |
Add an additional make variable EXTRAMIBSYMS which allows to specify
definition files that are used only for extracting symbols. This is useful
for inter-module dependencies and files containing only enum-definitions.
MFC after: 4 weeks
-rw-r--r-- | share/man/man7/bsd.snmpmod.mk.7 | 19 | ||||
-rw-r--r-- | share/mk/bsd.snmpmod.mk | 2 |
2 files changed, 18 insertions, 3 deletions
diff --git a/share/man/man7/bsd.snmpmod.mk.7 b/share/man/man7/bsd.snmpmod.mk.7 index bc2f516..30cf20d 100644 --- a/share/man/man7/bsd.snmpmod.mk.7 +++ b/share/man/man7/bsd.snmpmod.mk.7 @@ -1,5 +1,5 @@ .\" -.\" Copyright (c) 2005 +.\" Copyright (c) 2005,2008 .\" Hartmut Brandt. .\" All rights reserved. .\" @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 10, 2005 +.Dd January 8, 2008 .Dt BSD.SNMPMOD.MK 7 .Os .Sh NAME @@ -66,6 +66,21 @@ which contains the definition of the MIB tree implemented by the module. A list of extra MIB definition files for .Xr gensnmptree 1 . This is optional. +This file list is given to both calls to +.Xr gensnmptree 1 \(em +the one that extracts the symbols in +.Va XSYM +from the MIB definitions and the one that +generates the table with OIDs served by this module. +.It Va EXTRAMIBSYMS +A list of extra MIB definition files for +.Xr gensnmptree 1 . +This is optional. +This file list is given only to the call to +.Xr gensnmptree 1 +that extracts symbols from MIB definition files. +It is useful if there are dependencies on other MIBs or for extracting global +definitions for enumeration constants. .It Va XSYM A list of symbols to be extracted from the MIB definition files by .Xr gensnmptree 1 . diff --git a/share/mk/bsd.snmpmod.mk b/share/mk/bsd.snmpmod.mk index 92b40dc..552f936 100644 --- a/share/mk/bsd.snmpmod.mk +++ b/share/mk/bsd.snmpmod.mk @@ -7,7 +7,7 @@ SRCS+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h CLEANFILES+= ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h CFLAGS+= -I. -${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} +${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS} cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET} .ORDER: ${MOD}_tree.c ${MOD}_tree.h |