Date: Wed, 27 Jun 2018 12:39:10 -0700 From: Craig Leres <leres@freebsd.org> To: Hartmut Brandt <hartmut.brandt@dlr.de>, hackers@freebsd.org Subject: Re: makefile question Message-ID: <88473e08-4207-1dad-6377-951ff14c277d@freebsd.org> In-Reply-To: <alpine.BSF.2.21.999.1806272128240.76791@beagle.kn.op.dlr.de> References: <alpine.BSF.2.21.999.1806272128240.76791@beagle.kn.op.dlr.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/27/2018 12:33 PM, Hartmut Brandt wrote: > I'm preparing an update for bsnmp and have the following problem: > > 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 > > in usr.sbin/bsnmp/bsnmp to reach into the library object directory > doesn't look right. > > Or is this the right way to do this? Check out usr.bin/w/Makefile, it uses a module from bin/ps. Craig # @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD: releng/11.2/usr.bin/w/Makefile 319186 2017-05-30 04:27:05Z ngie $ PROG= w SRCS= fmt.c pr_time.c proc_compare.c w.c MAN= w.1 uptime.1 LIBADD= kvm sbuf xo util LINKS= ${BINDIR}/w ${BINDIR}/uptime .PATH: ${SRCTOP}/bin/ps .include <bsd.prog.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88473e08-4207-1dad-6377-951ff14c277d>