[fpc-pascal] Easier fpmake

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Aug 23 10:06:04 CEST 2012

On Wed, 22 Aug 2012, Tomas Hajny wrote:

> On 22 Aug 12, at 19:03, Michael Van Canneyt wrote:
> Hi Michael,
>> 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
>> wildcards)
>> 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
>> UseResourceStrings property.
>> 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.
> Like support for platforms where wildcards are not expanded by shell?
> ;-)

Good point. I will do so.


More information about the fpc-pascal mailing list