Correct the include path so that the include files are found

with include "...".
This commit is contained in:
Hartmut Brandt 2003-11-10 14:04:34 +00:00
parent 84df55b1f4
commit 723d6e6459
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122420
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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>