Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2018 13:08:26 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Hartmut Brandt <hartmut.brandt@dlr.de>, "freebsd-hackers@freebsd.org" <hackers@freebsd.org>, <sjg@juniper.net>
Subject:   Re: makefile question
Message-ID:  <62709.1530130106@kaos.jnpr.net>
In-Reply-To: <CANCZdfp8OHFHdsxf8qdk8ksRkaUPzvrZVgCBOLJS=fNo%2B9=wHg@mail.gmail.com>
References:  <alpine.BSF.2.21.999.1806272128240.76791@beagle.kn.op.dlr.de> <CANCZdfp8OHFHdsxf8qdk8ksRkaUPzvrZVgCBOLJS=fNo%2B9=wHg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62709.1530130106>