[fpc-devel] Make file questions (Makefile.fpc, fpmake.pp, etc)
Sven Barth
pascaldragon at googlemail.com
Wed Jan 4 07:58:43 CET 2023
Wayne Sherman <wsherman at gmail.com> schrieb am Mi., 4. Jan. 2023, 01:13:
> On Tue, Jan 3, 2023 at 12:17 AM Sven Barth wrote:
> >> 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.
>
> Got it. So after moving files and/or directories around in
> packages/some-package/ one has to:
> 1) Edit fpmake.pp to make sure it has the correct paths and files
> 2) Fix up any examples or lazarus project files with the correct
> paths. (if needed)
> 3) Run fpcmake -w -Tall from base package directory to regenerate
> Makefile
>
There is no need for 3 if all you do is change something inside the
fpmake.pp files and move files around. You only need to really work with
fpcmake when you change something in the rtl directory (as that still uses
that) or if a new target is added.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20230104/d519ed0c/attachment.htm>
More information about the fpc-devel
mailing list