From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 16:12:59 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC03816A41C for ; Wed, 13 Jul 2005 16:12:59 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72FE843D4C for ; Wed, 13 Jul 2005 16:12:58 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 13 Jul 2005 17:13:41 +0100 Message-ID: <42D53D89.20100@dial.pipex.com> Date: Wed, 13 Jul 2005 17:12:57 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: David Kelly References: <20050713145649.GA47667@Grumpy.DynDNS.org> In-Reply-To: <20050713145649.GA47667@Grumpy.DynDNS.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Jul 2005 16:13:41.0150 (UTC) FILETIME=[D5944BE0:01C587C5] Cc: questions@freebsd.org Subject: Re: Make GNU Make behave like BSD Make? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 16:13:00 -0000 David Kelly wrote: >So my question is "Is there a way to make GNU Make handle .depend the >BSD way? And is it possible for the same Makefile to run the same way on >either BSD or GNU Makes?" > > > I don't know the answer to your question (but I suspect it's "no, unless you hack the source"). However, you could just try standardising on one make or the other. gmake will build on FreeBSD and (unfortunately) may be the easiest way to go. There is also a thing called pmake (which I've used on Linux) which claims to be "BSD make", though whose "BSD make" I have not been able to fathom. It *may* work like FreeBSD make in the scenario you are asking about, but you'd have to try it to see. (It does not, regrettably, treat symlinks the same, going so far as to claim that a source which exists as a symlink to somewhere else, does not exist at all, even though it clearly does. Sigh. Whinge over). --Alex