mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Don't include bsd.init.mk so early - it's just not needed here.
Use . instead of ${.OBJDIR}. Move DEFSDIR and BMIBSDIR under the resp. .if clauses so that they get defined only if DEFS and BMIBS are defined. Submitted by: ru
This commit is contained in:
parent
7f7364b113
commit
af1fee9b7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152277
@ -1,13 +1,11 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
||||
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${.OBJDIR}
|
||||
CFLAGS+= -I.
|
||||
|
||||
${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
||||
cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
|
||||
@ -18,12 +16,12 @@ ${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
|
||||
|
||||
.if defined(DEFS)
|
||||
FILESGROUPS+= DEFS
|
||||
.endif
|
||||
DEFSDIR= ${SHAREDIR}/snmp/defs
|
||||
.endif
|
||||
|
||||
.if defined(BMIBS)
|
||||
FILESGROUPS+= BMIBS
|
||||
.endif
|
||||
BMIBSDIR= ${SHAREDIR}/snmp/mibs
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user