[fpc-pascal] Easier fpmake
Michael Van Canneyt
michael at freepascal.org
Wed Aug 22 19:03:16 CEST 2012
As you know, FPC uses fpmake to compile everything in packages.
As I've been steadily improving fcl-passrc for fpdoc,
(it's now almost on par with the compiler, barring errors and assembler statetements),
I created a small tool pas2fpm which takes as input a bunch of unit names,
and outputs a ready-to-go fpmake.pp file.
This means that
pas2fpcm -o fpmake.pp *.pp
is all you need to create a fpmake.pp file. (provided the shell expands
It analyses the sources, and creates an fpmake file that contains all units,
the units have the correct dependencies (it analyses that too) and sets the
If a particular source file is not compilable (parseable),
it will add it anyway, but with a comment.
The resulting fpmake.pp should compile and do what it needs to do.
The tool can be found in utils/pas2fpm.
I'd be pleased to hear of any comments or suggestions for improvement.
More information about the fpc-pascal