mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
02c3c75236
definition files that are used only for extracting symbols. This is useful for inter-module dependencies and files containing only enum-definitions. MFC after: 4 weeks
28 lines
635 B
Makefile
28 lines
635 B
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.
|
|
|
|
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS}
|
|
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
|
|
DEFSDIR= ${SHAREDIR}/snmp/defs
|
|
.endif
|
|
|
|
.if defined(BMIBS)
|
|
FILESGROUPS+= BMIBS
|
|
BMIBSDIR= ${SHAREDIR}/snmp/mibs
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|