This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Makefile rule and dependencies problem
- To: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Subject: Re: [ECOS] Makefile rule and dependencies problem
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Tue, 22 Aug 2000 21:26:04 +0100
- CC: "Ecos-List \(E-mail\)" <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <8AE4B526B977D411841F00A0CC334020052C1F@cuz-exchange.sdesigns.net>
Fabrice Gautier wrote:
>
> Unfortunately, the two following lines:
>
> @echo $@ ':' $< '\' > $@
> @tail +2 $(@:.o.d=.tmp) >> $@
>
> assume that the first dependency line generated by gcc contains only one the
> .c file dependency. So it would work for something like:
>
> file.o : file.c \
> file1.h \
> file2.h
>
> but not if the generated depends is like:
>
> file.o : file.c file1.h file2.h
>
> Don't know how to correct that however.
Are you saying that you have a gcc that produces dependencies in this form?
If so, which version?
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault