Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* sim/arm/Makefile.in fix for non-GNU make
@ 2001-11-06 10:04 Ben Harris
  2001-11-06 20:26 ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Harris @ 2001-11-06 10:04 UTC (permalink / raw)
  To: gdb-patches

[ Now with a ChangeLog entry ]

sim/arm/Makefile.in currently uses $< in a non-implicit rule.  This
doesn't work with non-GNU makes (at least NetBSD's one) since $< isn't set
for non-implicit rules.  This patch fixes the problem:

Index: Makefile.in
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/sim/arm/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in	2000/07/26 00:34:28	1.1.1.1
+++ Makefile.in	2001/11/15 14:57:19
@@ -31,10 +31,10 @@
 armcopro.o: armcopro.c armdefs.h

 armemu26.o: armemu.c armdefs.h armemu.h
-	$(CC) -c $< -o armemu26.o $(ALL_CFLAGS)
+	$(CC) -c $(srcdir)/armemu.c -o armemu26.o $(ALL_CFLAGS)

 armemu32.o: armemu.c armdefs.h armemu.h
-	$(CC) -c $< -o armemu32.o -DMODE32 $(ALL_CFLAGS)
+	$(CC) -c $(srcdir)/armemu.c -o armemu32.o -DMODE32 $(ALL_CFLAGS)

 arminit.o: arminit.c armdefs.h armemu.h


ChangeLog entry (suspiciously similar to one from 1997):

2001-11-15  Ben Harris  <bjh21@netbsd.org>

        * Makefile.in (armemu32.o): Replace $< with autoconf recommended
        $(srcdir)/....
        (armemu26.o): Ditto.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sim/arm/Makefile.in fix for non-GNU make
  2001-11-06 10:04 sim/arm/Makefile.in fix for non-GNU make Ben Harris
@ 2001-11-06 20:26 ` Andrew Cagney
  2001-11-06 22:11   ` Adding me to the MAINTAINERS file Ben Harris
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2001-11-06 20:26 UTC (permalink / raw)
  To: Ben Harris; +Cc: gdb-patches

> [ Now with a ChangeLog entry ]

In the wrong place :-)

> sim/arm/Makefile.in currently uses $< in a non-implicit rule.  This
> doesn't work with non-GNU makes (at least NetBSD's one) since $< isn't set
> for non-implicit rules.  This patch fixes the problem:

Yes, thanks, it can go in.  If you find more of these the I think they 
can be considered obvious.

Can you also, separatly, add yourself to the MAINTAINERS file as an 
``obvious fix'' (ie still post the change).

enjoy,
Andrew


> Index: Makefile.in
> ===================================================================
> RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/sim/arm/Makefile.in,v
> retrieving revision 1.1.1.1
> diff -u -r1.1.1.1 Makefile.in
> --- Makefile.in	2000/07/26 00:34:28	1.1.1.1
> +++ Makefile.in	2001/11/15 14:57:19
> @@ -31,10 +31,10 @@
>  armcopro.o: armcopro.c armdefs.h
> 
>  armemu26.o: armemu.c armdefs.h armemu.h
> -	$(CC) -c $< -o armemu26.o $(ALL_CFLAGS)
> +	$(CC) -c $(srcdir)/armemu.c -o armemu26.o $(ALL_CFLAGS)
> 
>  armemu32.o: armemu.c armdefs.h armemu.h
> -	$(CC) -c $< -o armemu32.o -DMODE32 $(ALL_CFLAGS)
> +	$(CC) -c $(srcdir)/armemu.c -o armemu32.o -DMODE32 $(ALL_CFLAGS)
> 
>  arminit.o: arminit.c armdefs.h armemu.h
> 
> 
> ChangeLog entry (suspiciously similar to one from 1997):
> 
> 2001-11-15  Ben Harris  <bjh21@netbsd.org>
> 
> * Makefile.in (armemu32.o): Replace $< with autoconf recommended
>         $(srcdir)/....
>         (armemu26.o): Ditto.
> 
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Adding me to the MAINTAINERS file
  2001-11-06 20:26 ` Andrew Cagney
@ 2001-11-06 22:11   ` Ben Harris
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Harris @ 2001-11-06 22:11 UTC (permalink / raw)
  To: gdb-patches

On Thu, 15 Nov 2001, Andrew Cagney wrote:

> Can you also, separatly, add yourself to the MAINTAINERS file as an
> ``obvious fix'' (ie still post the change).

... so here it is:

2001-11-16  Ben Harris  <bjh21@netbsd.org>

	* MAINTAINERS (write-after-approval): Add self.


Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.122
diff -u -r1.122 MAINTAINERS
--- MAINTAINERS	2001/11/06 22:40:06	1.122
+++ MAINTAINERS	2001/11/16 17:42:30
@@ -326,6 +326,7 @@
 Joel Brobecker					brobecker@act-europe.fr
 Nick Clifton					nickc@redhat.com
 Orjan Friberg					orjanf@axis.com
+Ben Harris					bjh21@netbsd.org
 Paul Hilfinger					hilfinger@gnat.com
 Matt Hiller					hiller@redhat.com
 Kazu Hirata					kazu@hxi.com

-- 
Ben Harris
Unix Support, University of Cambridge Computing Service.
E-mail: bjh21@cam.ac.uk  Tel: +44 (0)1223 334728  Fax: +44 (0)1223 334679



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sim/arm/Makefile.in fix for non-GNU make
@ 2001-11-06 10:30 Michael Elizabeth Chastain
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2001-11-06 10:30 UTC (permalink / raw)
  To: bjh21, gdb-patches

Ben Harris writes:

> sim/arm/Makefile.in currently uses $< in a non-implicit rule.  This
> doesn't work with non-GNU makes (at least NetBSD's one) since $< isn't set
> for non-implicit rules.

I got curious, so I checked the Single Unix Spec for make:

  http://www.opengroup.org/onlinepubs/007908799/xcu/make.html

It says:

   $<
          In  an  inference  rule,  $<  evaluates  to  the filename whose
          existence  allowed  the  inference  rule  to  be chosen for the
          target.  In  the  .DEFAULT  rule, the $< macro evaluates to the
          current  target  name.  The  $<  macro  is  evaluated  only for
          inference  rules.  For  example, in the .c.a inference rule, $<
          represents the prerequisite .c file.

So I think this is a good patch.

My two cents,

Michael C


^ permalink raw reply	[flat|nested] 5+ messages in thread

* sim/arm/Makefile.in fix for non-GNU make
@ 2001-11-06  9:03 Ben Harris
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Harris @ 2001-11-06  9:03 UTC (permalink / raw)
  To: gdb-patches

I'm not sure where to send sim patches, but since it's distributed with
GDB:

sim/arm/Makefile.in currently uses $< in a non-implicit rule.  This
doesn't work with non-GNU makes (at least NetBSD's one) since $< isn't set
for non-implicit rules.  This patch fixes the problem:

Index: Makefile.in
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/sim/arm/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in	2000/07/26 00:34:28	1.1.1.1
+++ Makefile.in	2001/11/15 14:57:19
@@ -31,10 +31,10 @@
 armcopro.o: armcopro.c armdefs.h

 armemu26.o: armemu.c armdefs.h armemu.h
-	$(CC) -c $< -o armemu26.o $(ALL_CFLAGS)
+	$(CC) -c $(srcdir)/armemu.c -o armemu26.o $(ALL_CFLAGS)

 armemu32.o: armemu.c armdefs.h armemu.h
-	$(CC) -c $< -o armemu32.o -DMODE32 $(ALL_CFLAGS)
+	$(CC) -c $(srcdir)/armemu.c -o armemu32.o -DMODE32 $(ALL_CFLAGS)

 arminit.o: arminit.c armdefs.h armemu.h


-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-16 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-06 10:04 sim/arm/Makefile.in fix for non-GNU make Ben Harris
2001-11-06 20:26 ` Andrew Cagney
2001-11-06 22:11   ` Adding me to the MAINTAINERS file Ben Harris
  -- strict thread matches above, loose matches on Subject: below --
2001-11-06 10:30 sim/arm/Makefile.in fix for non-GNU make Michael Elizabeth Chastain
2001-11-06  9:03 Ben Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox