aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-21 22:56:04 -0800
committerMike Frysinger <vapier@gentoo.org>2015-11-22 01:59:20 -0500
commit7c125e3b10ac6f9222d24c76cdf31a5a9ec8dae0 (patch)
tree6eed21f48a25a34fc57ebe1c1b380f44aedd52cc /sim/ppc/Makefile.in
parent37258e9950490293bb00808a55d82dea640efe6c (diff)
downloadgdb-7c125e3b10ac6f9222d24c76cdf31a5a9ec8dae0.zip
gdb-7c125e3b10ac6f9222d24c76cdf31a5a9ec8dae0.tar.gz
gdb-7c125e3b10ac6f9222d24c76cdf31a5a9ec8dae0.tar.bz2
sim: ppc: avoid use of $< in ordinary rules [PR sim/13834]
POSIX does not define $< behavior in ordinary rules, so avoid its use to fix building on non-GNU make setups. Reported-by: Christopher January <chris.january@allinea.com>
Diffstat (limited to 'sim/ppc/Makefile.in')
-rw-r--r--sim/ppc/Makefile.in11
1 files changed, 6 insertions, 5 deletions
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