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

Ruslan Ermilov ru at freebsd.org
Sun Jun 12 19:31:19 GMT 2005


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 at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050612/09b09bd1/attachment.bin


More information about the freebsd-hackers mailing list