Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-03

fpcmake with example programs.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Peter Mugaas

I'm having a problem with the fpc packaging system and an example program.

I have a dir setup for Indy like this:

Indy
fpc
| | | | | System Core Protocols Inc examples |
httpget

The main Makefile.fpcn located in the Indy\fpc dir. That references the examples as exampledirs under [target]. Then in the Makefile.fpc for examples, I state that they depend on Indy. I don't think fpcmake is finding indy at all when I do a recurive fpcmake -rTall (that does work in Windows setup without the examples reference). In Linux, I have Indy installed with RPM but that becomes a "what comes first, the chicken or the egg?" problem.

Here's the Makefile.fpc's in the sample dir:
====
[target]

dirs=httpget
programs=httpget

[install]
fpcpackage=y

[require]
packages=indy
packagedir=packagedir=../System/lib/$(CPU_TARGET)-$(OS_TARGET)/: \ ../Core/lib/$(CPU_TARGET)-$(OS_TARGET)/ \
../Protocols/lib/$(CPU_TARGET)-$(OS_TARGET) \
..
[compiler]
unittargetdir=units/$(CPU_TARGET)-$(OS_TARGET)
unitdir=../System/lib/$(CPU_TARGET)-$(OS_TARGET) \ ../Core/lib/$(CPU_TARGET)-$(OS_TARGET) \
../Protocols/lib/$(CPU_TARGET)-$(OS_TARGET) \
..
options=-gl

[default]
====
and here's the Makefile.fpc in the httpget directory: ===
[target]
programs=httpget

[require]

packages=indy
packagedir=../../:../System/lib/$(CPU_TARGET)-$(OS_TARGET)/: \ ../Core/lib/$(CPU_TARGET)-$(OS_TARGET)/: \
../Protocols/lib/$(CPU_TARGET)-$(OS_TARGET)/

[compiler]
unitdir=../../:../../System/lib/$(CPU_TARGET)-$(OS_TARGET)/: \ ../../Core/lib/$(CPU_TARGET)-$(OS_TARGET)/ : \
../../Protocols/lib/$(CPU_TARGET)-$(OS_TARGET)/:
../../lib/$(CPU_TARGET)-$(OS_TARGET)/
options=-gl

[install]
fpcpackage=y
===

and if you are curious, here's what I have in the main (indy\fpc folder: ----
[package]
name=indy
version=10.2.0.1
[require]
packages=fcl
fpcsubdir=packages/extra
[target]
dirs=System Core Protocols
exampledirs=examples
[install]
fpcpackage=y
[shared]
build=n
-----

Anyone know how I can fix this so it can work with "fpcmake -rTall"?

Support the anti-Spam amendment - Join at http://www.cauce.org/ J. Peter Mugaas, on 3/31/2006 http://wvnvm.wvnet.edu/~oma00215/ ICQ Number: 14297043 Finger for PGP Key

Reply by email