makefile question
Simon J. Gerraty
sjg at juniper.net
Wed Jun 27 20:11:52 UTC 2018
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.
More information about the freebsd-hackers
mailing list