summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-11-10 12:07:12 +0000
committerharti <harti@FreeBSD.org>2005-11-10 12:07:12 +0000
commit4d594c23ce7686e82278b14db56d9e7ac7de5843 (patch)
tree430783ae0d7bb929bac3f5b64f875d111f953673 /share
parent91564dc239bc801ca2a70a875784e5fcf61bf034 (diff)
downloadFreeBSD-src-4d594c23ce7686e82278b14db56d9e7ac7de5843.zip
FreeBSD-src-4d594c23ce7686e82278b14db56d9e7ac7de5843.tar.gz
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
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.snmpmod.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/share/mk/bsd.snmpmod.mk b/share/mk/bsd.snmpmod.mk
index b015e01..92b40dc 100644
--- a/share/mk/bsd.snmpmod.mk
+++ b/share/mk/bsd.snmpmod.mk
@@ -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>
OpenPOWER on IntegriCloud