diff options
author | harti <harti@FreeBSD.org> | 2005-11-10 10:03:22 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-11-10 10:03:22 +0000 |
commit | 86929f9937d3b2ed6aebe121efe90fe7f3c2f7ed (patch) | |
tree | 9476f7a24252dded102e435ad965655385abb1e6 /share/mk/bsd.snmpmod.mk | |
parent | 8ac32b507e0157e77284f107edca7b30b0346249 (diff) | |
download | FreeBSD-src-86929f9937d3b2ed6aebe121efe90fe7f3c2f7ed.zip FreeBSD-src-86929f9937d3b2ed6aebe121efe90fe7f3c2f7ed.tar.gz |
Add a .mk file for building modules for the SNMP daemon. This may be
use in-tree as well as for 3rd party modules. This file is more or less
what was in usr.sbin/bsnmpd/modules/Makefile.inc with some modifications
and omissions. Usage examples can be found under usr.sbin/bsnmpd/modules/*.
Idea by: phk
Diffstat (limited to 'share/mk/bsd.snmpmod.mk')
-rw-r--r-- | share/mk/bsd.snmpmod.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/share/mk/bsd.snmpmod.mk b/share/mk/bsd.snmpmod.mk new file mode 100644 index 0000000..b015e01 --- /dev/null +++ b/share/mk/bsd.snmpmod.mk @@ -0,0 +1,29 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +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 +CFLAGS+= -I${.OBJDIR} + +${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 ${EXTRAMIBDEFS} + cat ${.ALLSRC} | gensnmptree -p ${MOD}_ + +.if defined(DEFS) +FILESGROUPS+= DEFS +.endif +DEFSDIR= ${SHAREDIR}/snmp/defs + +.if defined(BMIBS) +FILESGROUPS+= BMIBS +.endif +BMIBSDIR= ${SHAREDIR}/snmp/mibs + +.include <bsd.lib.mk> |