Re: [PATCH 0/4] Makefile improvements and cleanups

John Baldwin
2016-11-15T21:46:03Z

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 <simon.marchi@polymtl.ca> 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