From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12773 invoked by alias); 15 Nov 2001 15:01:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12509 invoked from network); 15 Nov 2001 15:01:19 -0000 Received: from unknown (HELO draco.cus.cam.ac.uk) (131.111.8.18) by sourceware.cygnus.com with SMTP; 15 Nov 2001 15:01:19 -0000 Received: from bjh21 (helo=localhost) by draco.cus.cam.ac.uk with local-esmtp (Exim 3.951 #3) id 164O11-0005E9-00 for gdb-patches@sources.redhat.com; Thu, 15 Nov 2001 15:01:19 +0000 Date: Tue, 06 Nov 2001 09:03:00 -0000 From: Ben Harris To: Subject: sim/arm/Makefile.in fix for non-GNU make Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2001-11/txt/msg00082.txt.bz2 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 Portmaster, NetBSD/arm26