How to make use of the current source tree's include file?

2005-06-12 Thread Xin LI
Hi, Ruslan,

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?

Thanks in advance!

Cheers,
-- 
Xin LI delphij frontfree net  http://www.delphij.net/
See complete headers for GPG key and other information.



pgpIiONvj4RDp.pgp
Description: PGP signature


Re: How to make use of the current source tree's include file?

2005-06-12 Thread Ruslan Ermilov
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
[EMAIL PROTECTED]
FreeBSD committer


pgp2I4MhpT5L1.pgp
Description: PGP signature