[fpc-devel] Make file questions (Makefile.fpc, fpmake.pp, etc)

Sven Barth pascaldragon at googlemail.com
Tue Jan 3 09:17:26 CET 2023


Wayne Sherman via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am
Di., 3. Jan. 2023, 07:36:

> Each package directory (./fpc-source/packages/some-package/) typically
> has these files:
>    fpmake.pp  (where does this come from?)
>    Makefile  (this is generated by FPCMake?)
>    Makefile.fpc  (config file for FPCMake to create Makefile?)
>
> Some package directories also have:
>    Makefile.fpc.fpcmake  (?)
>
> Some questions please:
> 1) How do I generate the fpmake.pp file?  Or is it created by manual
> coding?
>

This is created manually and is *the* source for how to build a package.

2) Does "Makefile" automatically get generated during a build or do I
> have to manually run FPCMake?
>

You need to run fpcmake manually.

3) What is "Makefile.fpc.fpcmake" used for and how is it created?
>

This is the old, manually created build file. It mainly exists as reference
to check whether the fpmake.pp was created correctly. The new Makefile.fpc
is a general file shared by all packages that simply invokes fpmake (when
converted to a Makefile).

4) Can "fpmake" completely build fpc and all the packages without using
> "make"?
>

In theory yes, Joost has implemented and tested that, but we don't use
that.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20230103/48712614/attachment.htm>


More information about the fpc-devel mailing list