From af1fee9b7c9a9384af7a708a354269c820d46261 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Thu, 10 Nov 2005 12:07:12 +0000 Subject: [PATCH] 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 --- share/mk/bsd.snmpmod.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/share/mk/bsd.snmpmod.mk b/share/mk/bsd.snmpmod.mk index b015e019d3fa..92b40dcd7b65 100644 --- a/share/mk/bsd.snmpmod.mk +++ b/share/mk/bsd.snmpmod.mk @@ -1,13 +1,11 @@ # $FreeBSD$ -.include - 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