[fpc-devel] fpcmake with example programs.
J. Peter Mugaas
jpmugaas at charter.net
Fri Mar 31 22:18:37 CEST 2006
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, jpmugaas at charter.net on 3/31/2006
http://wvnvm.wvnet.edu/~oma00215/ ICQ Number: 14297043
Finger for PGP Key
More information about the fpc-devel
mailing list