freebsd-dev/usr.sbin/bsnmpd/modules/Makefile.inc
Hartmut Brandt 0543f20b95 Rename the MIBS makefile variable to BMIBS so that it does not conflict
with the environment variable MIBS that is used by net-snmp.
2004-01-24 20:12:30 +00:00

26 lines
595 B
Makefile

# $FreeBSD$
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${CONTRIB}/lib -I${CONTRIB}/snmpd -I.
${MOD}_oid.h: ${MOD}_tree.def
gensnmptree -e ${XSYM} < ${.ALLSRC} > ${.TARGET}
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def
gensnmptree -l -p ${MOD}_ < ${.ALLSRC}
.if defined(DEFS)
FILESGROUPS+= DEFS
DEFSDIR= ${SHAREDIR}/bsnmp/defs
.endif
.if defined(BMIBS)
FILESGROUPS+= BMIBS
BMIBSDIR= ${SHAREDIR}/bsnmp/mibs
.endif
.include "../Makefile.inc"