From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 12 19:31:19 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DC7416A41C for ; Sun, 12 Jun 2005 19:31:19 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DC8B43D53 for ; Sun, 12 Jun 2005 19:31:17 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j5CJVCnQ053780; Sun, 12 Jun 2005 22:31:12 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 28446-11; Sun, 12 Jun 2005 22:31:12 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j5CJVBY9053777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Jun 2005 22:31:12 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j5CJVfoH004619; Sun, 12 Jun 2005 22:31:41 +0300 (EEST) (envelope-from ru) Date: Sun, 12 Jun 2005 22:31:35 +0300 From: Ruslan Ermilov To: Xin LI Message-ID: <20050612193135.GA94541@ip.net.ua> References: <20050612153404.GA30999@frontfree.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20050612153404.GA30999@frontfree.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-hackers@freebsd.org Subject: Re: How to make use of the current source tree's include file? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 19:31:19 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > CFLAGS+=3D -I${.CURDIR}/../../../../sys/ >=20 > However I'm under the impression that there is some better ways to > archive this, will you please give me some hints? >=20 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=3D-I${.CURDIR}/.../sys" without modifying the makefile. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCrI2XqRfpzJluFF4RAtRlAKCT5jJ7ZmLALz9Gv8kZn9Z1rwMLxgCfeIZ3 7EJtdOPP2jww8nCORrZN+80= =mHGq -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--