[fpc-pascal]Makefile.fpc reloaded

Marc Santhoff M.Santhoff at t-online.de
Mon Apr 5 14:19:41 CEST 2004


Am Mo, den 05.04.2004 schrieb Peter Vreman um 07:47:
> > Hi!
> >
> > After stopping because of too few time I'm starting writing Makefile.fpc
> > again.
> >
> > The structure is now:
> >
> > main/src
> >     /test
> >     /doc
> >
> > The goal is to have fpcmake create a directory "obj" for writing all the
> > .o, .ppu and the binary program into. This should happen from "src" whre
> > the real program is written and from "test", where some testing tools
> > are made. This was the problem I could not solve before.
> 
> fpcmake does not support creation of directories. All the temp and output
> directories must already exists.

Okay.

> 
> > Second is to do something on documentation files, e.g. creating html
> > from something else or starting arbitrary tools on the doc files.
> 
> Generic support for documentation files is too complex, there are too many
> source and destination formats. Maybe only fpdoc support will be added in
> the future.

See my second question, running some tool is enough.

> > My questions:
> >
> > Is it the best way to have a main makefile and further ones for each
> > subdir? (If not, what's better?)
> 
> That is not the way fpcmake is made. Ofcourse you can build your own
> Makefiles to support it.

That is in fact a very interesting idea. Everything else will work as
usual and (g)make calls fpcmake to generate the programm from source. 

> > How can i tell fpcmake to run tool "x" on all ".abc"-files in dir "y"?
> 
> Add the required Makefile code for it in the [rules] section. See 'info
> make' for all possible Makefile functions and rules.

Swapped this makes sense to me, as written above.

Thank you!

Bye,
Marc






More information about the fpc-pascal mailing list