summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-11-10 14:04:34 +0000
committerharti <harti@FreeBSD.org>2003-11-10 14:04:34 +0000
commita5fa8ea082b527a4d0618918d83dd7e12f00a68e (patch)
tree05700b4282ed3b43d4aabd5d953e8a43d692d88b /usr.sbin
parent475589ff3f82cc14fce2c7915e3a6cc57dcc7936 (diff)
downloadFreeBSD-src-a5fa8ea082b527a4d0618918d83dd7e12f00a68e.zip
FreeBSD-src-a5fa8ea082b527a4d0618918d83dd7e12f00a68e.tar.gz
Correct the include path so that the include files are found
with include "...".
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bsnmpd/bsnmpd/Makefile6
-rw-r--r--usr.sbin/bsnmpd/gensnmptree/Makefile6
2 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile
index a1856eb..f48af02 100644
--- a/usr.sbin/bsnmpd/bsnmpd/Makefile
+++ b/usr.sbin/bsnmpd/bsnmpd/Makefile
@@ -2,7 +2,8 @@
#
# Author: Harti Brandt <harti@freebsd.org>
-.PATH: ${.CURDIR}/../../../contrib/bsnmp/snmpd
+CONTRIB=${.CURDIR}/../../../contrib/bsnmp
+.PATH: ${CONTRIB}/snmpd
PROG= bsnmpd
SRCS= oid.h tree.h tree.c main.c action.c config.c export.c trap.c
@@ -19,7 +20,8 @@ INCSDIR= ${INCLUDEDIR}/bsnmp
# snmpdmod is installed in lib/libbsnmp/modules
# INCS= snmpmod.h
-CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../lib -I${.OBJDIR} -I${INCLUDEDIR}/bsnmp
+CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../lib -I${.OBJDIR} \
+ -I${CONTRIB}/lib -I${CONTRIB}/snmpd
DPADD+= ${LIBISC} ${LIBBSNMP}
LDADD= -lisc -lbsnmp
diff --git a/usr.sbin/bsnmpd/gensnmptree/Makefile b/usr.sbin/bsnmpd/gensnmptree/Makefile
index 5efa31a..dc95258 100644
--- a/usr.sbin/bsnmpd/gensnmptree/Makefile
+++ b/usr.sbin/bsnmpd/gensnmptree/Makefile
@@ -2,11 +2,11 @@
#
# Author: Harti Brandt <harti@freebsd.org>
-CONTRIB=${.CURDIR}/../../../contrib/bsnmp/gensnmptree
-.PATH: ${CONTRIB}
+CONTRIB=${.CURDIR}/../../../contrib/bsnmp
+.PATH: ${CONTRIB}/gensnmptree
PROG= gensnmptree
MAN= gensnmptree.1
-CFLAGS+= -I${INCLUDEDIR}/bsnmp
+CFLAGS+= -I${CONTRIB}/lib
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud