freebsd-skq/lib/libbsnmp/modules/Makefile.inc
Hartmut Brandt 9de3b3505c Move the SNMP MIBs and tree definitions from /usr/share/bsnmp to
/usr/share/snmp. This mirrors the use of /usr/local/share/snmp and
makes also more sense when non-bsnmp-specific MIBs go in.
2004-04-14 16:06:19 +00:00

26 lines
593 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
.endif
DEFSDIR= ${SHAREDIR}/snmp/defs
.if defined(BMIBS)
FILESGROUPS+= BMIBS
.endif
BMIBSDIR= ${SHAREDIR}/snmp/mibs
.include "../Makefile.inc"