Date: Sun, 12 Jun 2005 22:31:35 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Xin LI <delphij@frontfree.net> Cc: freebsd-hackers@freebsd.org Subject: Re: How to make use of the current source tree's include file? Message-ID: <20050612193135.GA94541@ip.net.ua> In-Reply-To: <20050612153404.GA30999@frontfree.net> References: <20050612153404.GA30999@frontfree.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi Xin,
On Sun, Jun 12, 2005 at 11:34:04PM +0800, Xin LI wrote:
> I am recently working on a patchset that would provide mini-crashdump
> which needs to include a newly added include file into /sys/sys/ from
> the kgdb(1) source code. I have used the following line to make this
> possible, in the latter's Makefile:
>
> CFLAGS+= -I${.CURDIR}/../../../../sys/
>
> However I'm under the impression that there is some better ways to
> archive this, will you please give me some hints?
>
This line would be redundant when you "make buildworld" -- in this
case, the fresh headers are used.
But if you are looking for a way to compile a program with a new
(previously non-existent) header, the above makes sense.
Alternatively, you can "make .. DEBUG_FLAGS=-I${.CURDIR}/.../sys"
without modifying the makefile.
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFCrI2XqRfpzJluFF4RAtRlAKCT5jJ7ZmLALz9Gv8kZn9Z1rwMLxgCfeIZ3
7EJtdOPP2jww8nCORrZN+80=
=mHGq
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050612193135.GA94541>
