Sign in Join

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

Mailing lists / fpc-pascal / 2004-03

no ppu installation with fpcmake

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marc Santhoff

Hi!

I'm new to this list and have a lot of questions waiting, so be patient please. ;)

The first one:

I wrote a Makefile.fpc that is working fine. The only thing i can't achieve is to leave out the *.ppu files when installing.

My goal is to install only the program and some data and readme but no compiler related files.

TIA,
Marc

Reply by email

Peter Vreman
to Marc Santhoff
Show quoted text 12 lines
Hi! I'm new to this list and have a lot of questions waiting, so be patient please. ;) The first one: I wrote a Makefile.fpc that is working fine. The only thing i can't achieve is to leave out the *.ppu files when installing. My goal is to install only the program and some data and readme but no compiler related files.

Under [target] only specify the programs. Under [clean] add the units.

Reply by email

Marc Santhoff
to Peter Vreman
Show quoted text 14 lines
> Hi! > > I'm new to this list and have a lot of questions waiting, so be patient > please. ;) > > The first one: > > I wrote a Makefile.fpc that is working fine. The only thing i can't > achieve is to leave out the *.ppu files when installing. > > My goal is to install only the program and some data and readme but no > compiler related files. Under [target] only specify the programs. Under [clean] add the units.

If I try that way the units are not found.

Maybe this depends on the directory structure?

In the main dir there are subdirs src and obj and in the Makefile.fpc the paths are set for the compiler:

[compiler]
options=-S2 -k-L/usr/local/lib -O2
sourcedir=./src
unittargetdir=./obj
targetdir=./obj
objdir=./obj
unitdir=./obj

This works so far if the units are listed in the [target] section.

Marc

Reply by email

Peter Vreman
Show quoted text 21 lines
> > My goal is to install only the program and some data and readme but no > > compiler related files. > > Under [target] only specify the programs. Under [clean] add the units. If I try that way the units are not found. Maybe this depends on the directory structure? In the main dir there are subdirs src and obj and in the Makefile.fpc the paths are set for the compiler: [compiler] options=-S2 -k-L/usr/local/lib -O2 sourcedir=./src unittargetdir=./obj targetdir=./obj objdir=./obj unitdir=./obj This works so far if the units are listed in the [target] section.

The unitdir specifies the path where .ppu or when .ppu is not found the .pas/.pp are searched. sourcedir is only used for the Makefile and never passed to the compiler. objdir is only needed for external .o files.

The following should be enough:

[compiler]
options=-S2 -k-L/usr/local/lib -O2
unitdir=./src
targetdir=./obj

Reply by email

Peter Vreman
to Marc Santhoff: If I try that way the units are not found. Maybe this depends on the directory structure?…
Show quoted text 21 lines
> > My goal is to install only the program and some data and readme but no > > compiler related files. > > Under [target] only specify the programs. Under [clean] add the units. If I try that way the units are not found. Maybe this depends on the directory structure? In the main dir there are subdirs src and obj and in the Makefile.fpc the paths are set for the compiler: [compiler] options=-S2 -k-L/usr/local/lib -O2 sourcedir=./src unittargetdir=./obj targetdir=./obj objdir=./obj unitdir=./obj This works so far if the units are listed in the [target] section.

The unitdir specifies the path where .ppu or when .ppu is not found the .pas/.pp are searched. sourcedir is only used for the Makefile and never passed to the compiler. objdir is only needed for external .o files.

The following should be enough:

[compiler]
options=-S2 -k-L/usr/local/lib -O2
unitdir=./src
targetdir=./obj

Reply by email

Marc Santhoff
to Peter Vreman
Show quoted text 32 lines
>> > My goal is to install only the program and some data and readme but no >> > compiler related files. >> >> Under [target] only specify the programs. Under [clean] add the units. > > If I try that way the units are not found. > > Maybe this depends on the directory structure? > > In the main dir there are subdirs src and obj and in the Makefile.fpc > the paths are set for the compiler: > > [compiler] > options=-S2 -k-L/usr/local/lib -O2 > sourcedir=./src > unittargetdir=./obj > targetdir=./obj > objdir=./obj > unitdir=./obj > > This works so far if the units are listed in the [target] section. The unitdir specifies the path where .ppu or when .ppu is not found the .pas/.pp are searched. sourcedir is only used for the Makefile and never passed to the compiler. objdir is only needed for external .o files. The following should be enough: [compiler] options=-S2 -k-L/usr/local/lib -O2 unitdir=./src targetdir=./obj

Trying that way (g)make complains about seeing no target to build the program needed by fpc_exes.

If I put sourcedir=./src back in, the building starts until the first unit is referenced in the uses clause which is not found.

But 'm sorry, I have not enough time to investigate further. For now i use a little script to install in the right places. After roll out of the programm I'll come back again on this topic, hopefully working with 1.9.

Thak you very much so far,
Marc

Reply by email