From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30329 invoked by alias); 15 Nov 2016 21:46:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 30304 invoked by uid 89); 15 Nov 2016 21:46:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=H*F:D*freebsd.org, baldwin, Baldwin X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Nov 2016 21:45:53 +0000 Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 1343C10A742; Tue, 15 Nov 2016 16:45:51 -0500 (EST) From: John Baldwin To: Pedro Alves Cc: Simon Marchi , Andreas Schwab , gdb-patches@sourceware.org Subject: Re: [PATCH 0/4] Makefile improvements and cleanups Date: Tue, 15 Nov 2016 21:46:00 -0000 Message-ID: <3503621.r04R2RVOxe@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.0-PRERELEASE; KDE/4.14.10; amd64; ; ) In-Reply-To: <64d5f928-7710-d9a8-3e71-c87d74ef3414@redhat.com> References: <20161113034625.8237-1-simon.marchi@polymtl.ca> <968dffb716723c39a8a3cf0ab2d5bfca@polymtl.ca> <64d5f928-7710-d9a8-3e71-c87d74ef3414@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00400.txt.bz2 On Tuesday, November 15, 2016 04:56:55 PM Pedro Alves wrote: > On 11/13/2016 03:26 PM, Simon Marchi wrote: > > On 2016-11-13 03:49, Andreas Schwab wrote: > >> On Nov 12 2016, Simon Marchi wrote: > >> > >>> The following patches contain a few improvements and cleanups to the gdb > >>> Makefile. The starting point is when I wondered why we had to write > >>> individual > >>> rules for each source file that is located in a subdirectory. > >> > >> That's because the makefile was written to work non-GNU and/or non-POSIX > >> makes. > > > > Ok I see, I didn't know that pattern rules were GNU-specific. > > > > As an honest follow-up question: do we need to stay compatible with > > other makes than GNU make? From what I can see, Open/Net/FreeBSD all > > use gmake to build their port of GDB already. > > You mean their ports scripts? Can you provide some url for reference? > > John, could you comment from the FreeBSD side? Yes. The gdb port for FreeBSD has 'USES= gmake' in its Makefile (and has for a long time). I use gmake for all of my development builds out of git as well. https://svnweb.freebsd.org/ports/head/devel/gdb/Makefile?revision=418964&view=markup#l18 I checked NetBSD (pkgsrc) and OpenBSD (ports) and they both build with gmake as well. I had already assumed gmake was required FWIW. -- John Baldwin