makefile question
Warner Losh
imp at bsdimp.com
Wed Jun 27 20:13:58 UTC 2018
On Wed, Jun 27, 2018 at 2:08 PM, Simon J. Gerraty <sjg at juniper.net> wrote:
> Warner Losh <imp at bsdimp.com> wrote:
> > > In libbsnmp a header file is created during the build process, which
> > > obviously ends up in the object tree. Now I need to include this file
> > > when building the daemon and modules from usr.sbin. I have the feeling
> > > that doing
> > >
> > > CFLAGS += -I../../../lib/libbsnmp/libbsnmp
> > >
> >
> > use ${SRCTOP}/lib/... here
>
> I think he said it's a generated header.
>
> Looks like share/mk/src.sys.obj.mk now sets OBJTOP
> or at least OBJROOT even for non-meta-mode build.
>
> So -I${OBJTOP}/lib/libbsnmp/libbsnmp should probably work.
>
Oh, you're right. I missed that detail.
Warner
More information about the freebsd-hackers
mailing list