[fpc-pascal] Makefile.fpc and packages dependencies

Thierry B. thierrybothorel at yahoo.fr
Sun Oct 31 00:58:50 CEST 2010


Hi,

I try to understand how Makefile.fpc work on indy project, I read "using
fpcmake" in freepascal "Programmer's guide" but I am out of luck:

I have two directories at the same deep level:

--Core
--System

Each contains a package. Core needs System. Programmer's guide "E.4.8
Requires" says:

> packages:  Other packages that should be compiled before this package can be compiled

So I have

[require]
packages=indysystemfpc

and:

> packagedir:  List of package directories.  The packages in these directories will be made as well
> before making the current package.

So I have now:

[require]
packages=indysystemfpc
packagedir=../System

But I get  *Error: Target "linux", package "indysystemfpc" not found

Is really 'packagedir' a search path for 'packages'?

Obviously looking at 'fpcmake -w -Tall -v' output it does not look in
this directory.

Thierry B.




More information about the fpc-pascal mailing list