freebsd-dev/lib/libbsnmp/modules/Makefile.inc
Hartmut Brandt a566bd48a8 Now that gensnmptree can read and merge more than one tree make
the rule so that the tree .c and .h files can be produced from several
trees.
2004-08-09 16:37:25 +00:00

30 lines
761 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 ${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 -l -p ${MOD}_
.if defined(DEFS)
FILESGROUPS+= DEFS
.endif
DEFSDIR= ${SHAREDIR}/snmp/defs
.if defined(BMIBS)
FILESGROUPS+= BMIBS
.endif
BMIBSDIR= ${SHAREDIR}/snmp/mibs
MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \
-e 's%@DEFPATH@%${DEFSDIR}/%g' \
-e 's%@MIBSPATH@%${BMIBSDIR}/%g'
.include "../Makefile.inc"