[fpc-pascal] fpmake dependencies

Michael Van Canneyt michael at freepascal.org
Tue Apr 14 17:30:01 CEST 2009



On Tue, 14 Apr 2009, Mattias Gärtner wrote:

> Zitat von Michael Van Canneyt <michael at freepascal.org>:
> 
> >[...]
> > > Hint: File "units/i386-darwin/allcodetoolunits.o" was already deleted
> >
> > It should maybe be reduced to a debug message, just to see what the
> > clean command is actually trying to do.
> 
> I created a bug report.

I saw it :-)

> > > > > > > Is there a tool to create them automatically?
> > > > > >
> > > > > > Not yet. This is planned.
> > > > >
> > > > > Come on. You didn't add the 14 thousand filenames manually, did you?
> > > >
> > > > The unit source names were added from the Makefile.fpc (there is a
> > > > conversion
> > > > mode) but the rest was added manually.
> > >
> > > You call yourself a programmer? Shame on you. ;)
> >
> > Ah, but for the RTL, adding them manually was less job than
> > writing a tool. Basically, I'm lazy :)
> 
> It's hard to believe that this was easier, but I try. :)
> 
> 
> > > > I realize that for the LCL, this will be a rather largish job :-)
> > >
> > > I will rather write a tool than add them manually.
> >
> > I was hoping someone would volunteer :-)
> >
> > For the LCL, writing the tool is probably less work (given the codetools)
> > than adding them manually, so basically, you're just lazy too. This way
> > I don't need to feel too ashamed about myself :)
> 
> Before I can write such a tool I have to understand fpmake, its features, its
> goals and its bugs.
> 
> The single parameter Options is a show stopper for the LCL, because I use often
> flags like -gh plus a few -d flags for the experimental features.

I understand. 
Maybe we should change it to tstrings, and say that there should be one option 
per line ? That avoids the hassle of having to parse the Options string for quoted
params.

> 
> 
> >[...]
> > > That's where I looked. Should I copy the SearchFile procedure?
> >
> > Can't you use it instead of copy it ?
> 
> It has no interface.

No comprendo ?
 
> And btw, I don't understand why it uses:
>     if FindFirst(SearchDir+'*',faAnyFile and faDirectory,Info)=0 then
> 
> faAnyFile and faDirectory = faDirectory.

Indeed, 
1) it should be or instead of and
2) anyfilemask should be used instead of '*' :-)

Michael.


More information about the fpc-pascal mailing list