Date: Mon, 1 Dec 1997 12:23:30 +0100 (MET) From: Hans-Bernhard Broeker To: Eli Zaretskii cc: DJ Delorie , djgpp workers list Subject: Re: alpha-971114: next round of Makefile changes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 30 Nov 1997, Eli Zaretskii wrote: > On Thu, 27 Nov 1997, Hans-Bernhard Broeker wrote: > > 1) In src/libc/crt0, the files 'crt0.s' and 'gcrt0.s' have to be renamed, > > otherwise 'make' won't find them (it explicitly names them in rules, so > > the usual trick with the pattern rule %.o: %.s doesn't work here). But > > once they are renamed, 'gcrt0.S' still won't compile, as it #includes > > 'crt0.s' instead of 'crt0.S'. > > So we need to fix the Makefile and the sources. Is that what you > intend to do? Yes, sort of. This is kind of a design decision to be made, and I'll leave that to DJ: either fix all the sources and Makefiles to use '*.s', or ensure that the source distribution file names are really '*.S'. My last set of changes favours the latter choice. > > 2) 'make clean' in src/libc/stubs removes '*.S', but here, the files > > generated by 'mkstubs.exe' are actually called '*.s', even on Linux. > > Seems like mkstubs.exe needs to be changed as well. Not necessarily. As above, we can either change the makefile to clean away '*.s' (as I did), or change mkstubs.c to actually write *.S files. Generally, the current Makefiles do work even for a non case-preserving source distribution, but some quirks had been overlooked. These can either be changed locally (using patches like the ones I sent), or globally, by distributing the sources with the upper-case .S intact. > > The patch set fixes 2), but for 1), I only offer a shell script to > > do the necessary changes. > > Why not change the sources and Makefiles? That'd be the other choice, yes. Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.