8e9b3e7071
For developers gensnmptree can now generate functions for enums to convert between enums and strings and to check the validity of a value. The sources in FreeBSD are now in sync with the upstream which allows to bring in IPv6 modifications.
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
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.
|
|
GENSNMPTREEFLAGS+= -I${SHAREDIR}/snmpdefs
|
|
|
|
|
|
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS}
|
|
cat ${.ALLSRC} | gensnmptree ${GENSNMPTREEFLAGS} -e ${XSYM} > ${.TARGET}
|
|
|
|
.ORDER: ${MOD}_tree.c ${MOD}_tree.h
|
|
${MOD}_tree.h: .NOMETA
|
|
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
|
cat ${.ALLSRC} | gensnmptree -f ${GENSNMPTREEFLAGS} -p ${MOD}_
|
|
|
|
.if defined(DEFS)
|
|
FILESGROUPS+= DEFS
|
|
DEFSDIR?= ${SHAREDIR}/snmp/defs
|
|
.endif
|
|
|
|
.if defined(BMIBS)
|
|
FILESGROUPS+= BMIBS
|
|
BMIBSDIR?= ${SHAREDIR}/snmp/mibs
|
|
.endif
|
|
|
|
.if !target(smilint) && !empty(BMIBS)
|
|
LOCALBASE?= /usr/local
|
|
|
|
SMILINT?= ${LOCALBASE}/bin/smilint
|
|
|
|
SMIPATH?= ${BMIBSDIR}:${LOCALBASE}/share/snmp/mibs
|
|
|
|
SMILINT_FLAGS?= -c /dev/null -l6 -i group-membership
|
|
|
|
smilint: ${BMIBS}
|
|
SMIPATH=${SMIPATH} ${SMILINT} ${SMILINT_FLAGS} ${.ALLSRC}
|
|
.endif
|
|
smilint: .PHONY
|
|
|
|
.include <bsd.lib.mk>
|