* [PATCH] Fix parallel build in sim/ppc
@ 2004-11-13 17:04 Andreas Schwab
2004-11-16 1:43 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2004-11-13 17:04 UTC (permalink / raw)
To: gdb-patches
There are a few dependencies missing in sim/ppc/Makefile that can cause a
parallel build to fail.
Andreas.
2004-11-13 Andreas Schwab <schwab@suse.de>
* Makefile.in (defines.h): Depend on tmp-defines.
(hw.c hw.h): Depend on tmp-hw.
(pk.h): Depend on tmp-pk.
--- sim/ppc/Makefile.in.~1.17.~ 2004-08-05 23:14:06.000000000 +0200
+++ sim/ppc/Makefile.in 2004-11-13 14:57:50.535674611 +0100
@@ -660,6 +660,7 @@ tconfig.h:
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)"' $<
+defines.h: tmp-defines; @true
tmp-defines: config.h Makefile
sed -n -e '/^#define HAVE_/s/ 1$$/",/' -e '/^#define HAVE_/s//"HAVE_/p' < config.h > tmp-defines.h
$(SHELL) $(srcdir)/../../move-if-change tmp-defines.h defines.h
@@ -787,6 +788,7 @@ misc.o: misc.c $(CONFIG_H) $(MISC_H)
# real hardware
+hw.c hw.h: tmp-hw; @true
tmp-hw: Makefile $(HW_SRC) $(srcdir)/../../move-if-change
# The first for loop is to remove duplicates.
f=""; \
@@ -838,6 +840,7 @@ hw_vm.o: hw_vm.c $(DEVICE_TABLE_H) $(CPU
# real packages
+pk.h: tmp-pk; @true
tmp-pk: Makefile $(PACKAGE_SRC) $(srcdir)/../../move-if-change
# The first for loop is to remove duplicates.
f=""; \
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix parallel build in sim/ppc
2004-11-13 17:04 [PATCH] Fix parallel build in sim/ppc Andreas Schwab
@ 2004-11-16 1:43 ` Daniel Jacobowitz
2004-11-16 10:22 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2004-11-16 1:43 UTC (permalink / raw)
To: Andreas Schwab; +Cc: gdb-patches
On Sat, Nov 13, 2004 at 06:04:27PM +0100, Andreas Schwab wrote:
> There are a few dependencies missing in sim/ppc/Makefile that can cause a
> parallel build to fail.
>
> Andreas.
>
> 2004-11-13 Andreas Schwab <schwab@suse.de>
>
> * Makefile.in (defines.h): Depend on tmp-defines.
> (hw.c hw.h): Depend on tmp-hw.
> (pk.h): Depend on tmp-pk.
This is fine (assuming that '; @true' is portable Make; you'd know
better than I would).
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix parallel build in sim/ppc
2004-11-16 1:43 ` Daniel Jacobowitz
@ 2004-11-16 10:22 ` Andreas Schwab
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2004-11-16 10:22 UTC (permalink / raw)
To: gdb-patches
Daniel Jacobowitz <drow@false.org> writes:
> On Sat, Nov 13, 2004 at 06:04:27PM +0100, Andreas Schwab wrote:
>> There are a few dependencies missing in sim/ppc/Makefile that can cause a
>> parallel build to fail.
>>
>> Andreas.
>>
>> 2004-11-13 Andreas Schwab <schwab@suse.de>
>>
>> * Makefile.in (defines.h): Depend on tmp-defines.
>> (hw.c hw.h): Depend on tmp-hw.
>> (pk.h): Depend on tmp-pk.
>
> This is fine (assuming that '; @true' is portable Make; you'd know
> better than I would).
Putting the first command on the same line as the prerequisites is part of
the original makefile syntax, AFAIK, and supported by POSIX.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-16 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-13 17:04 [PATCH] Fix parallel build in sim/ppc Andreas Schwab
2004-11-16 1:43 ` Daniel Jacobowitz
2004-11-16 10:22 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox