From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 6 18:17:18 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E291BBCC for ; Sun, 6 Jan 2013 18:17:18 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id A298D11A5 for ; Sun, 6 Jan 2013 18:17:18 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:a185:d642:e8c7:c80]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id D02274AC32 for ; Sun, 6 Jan 2013 22:17:10 +0400 (MSK) Date: Sun, 6 Jan 2013 22:17:09 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1582957716.20130106221709@serebryakov.spb.ru> To: hackers@freebsd.org Subject: Proper way to determine place of system sources in makefile? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2013 18:17:18 -0000 Hello, Hackers. I'm writing some code, which is built outside of system sources but depends on them. I'm using FreeBSD mk infrastructure. When code is kernel module (uses ) here is SYSDIR variable. But which is proper way to refer to system sources when makefile is prepared for shared library () or program ()? -- // Black Lion AKA Lev Serebryakov