makefile question
Craig Leres
leres at freebsd.org
Wed Jun 27 19:39:24 UTC 2018
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>
More information about the freebsd-hackers
mailing list