This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Makefile rule and dependencies problem


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]