From patchwork Sun Nov 22 07:01:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 9773 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 20184 invoked by alias); 22 Nov 2015 07:01:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 20162 invoked by uid 89); 22 Nov 2015 07:01:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 22 Nov 2015 07:01:25 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 964F6340784 for ; Sun, 22 Nov 2015 07:01:23 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: ppc: avoid use of $< in ordinary rules [PR sim/13834] [committed] Date: Sun, 22 Nov 2015 02:01:22 -0500 Message-Id: <1448175682-27316-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes POSIX does not define $< behavior in ordinary rules, so avoid its use to fix building on non-GNU make setups. Reported-by: Christopher January --- sim/ppc/ChangeLog | 7 +++++++ sim/ppc/Makefile.in | 11 ++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 24fcbb8..9d85c4c 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,10 @@ +2015-11-21 Mike Frysinger + + PR sim/13834 + * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c. + (callback.o): Change $< to $(srcdir)/../common/callback.c. + (options.o): Change $< to $(srcdir)/options.c. + 2015-11-17 Pedro Alves * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 5278f3b..bac36a9 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -635,8 +635,9 @@ mon.o: mon.c $(BASICS_H) $(CPU_H) $(MON_H) # GDB after 4.16 expects the default_callback structure to be setup. # As a kludge, build the common stuff here for now. -gentmap: ../common/gentmap.c Makefile targ-vals.def - $(CC_FOR_BUILD) $(BUILD_CFLAGS) -I. -I../common -I$(srcdir)/../common -o gentmap $< $(BUILD_LIBS) +gentmap: $(srcdir)/../common/gentmap.c Makefile targ-vals.def + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -I. -I../common -I$(srcdir)/../common \ + -o gentmap $(srcdir)/../common/gentmap.c $(BUILD_LIBS) targ-vals.def: $(srcdir)/../common/nltvals.def rm -f targ-vals.def tmp-def @@ -653,8 +654,8 @@ targ-map.c: Makefile gentmap $(srcdir)/../../move-if-change ./gentmap -c > tmp-map.c $(SHELL) $(srcdir)/../../move-if-change tmp-map.c targ-map.c -callback.o: ../common/callback.c $(TARG_VALS_H) $(CONFIG_H) - $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $< +callback.o: $(srcdir)/../common/callback.c $(TARG_VALS_H) $(CONFIG_H) + $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/callback.c targ-map.o: targ-map.c $(ANSIDECL_H) $(GDB_CALLBACK_H) $(TARG_VALS_H) @@ -667,7 +668,7 @@ tconfig.h: # Rebuild options whenever something changes so the date/time is up to date. options.o: options.c $(CPU_H) $(OPTIONS_H) $(DEFINES_H) $(BASICS_H) $(IDECODE_H) $(INLINE) $(LIB_SRC) $(BUILT_SRC) config.status Makefile - $(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $< + $(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $(srcdir)/options.c defines.h: tmp-defines; @true tmp-defines: config.h Makefile