Sign in Join

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

Mailing lists / fpc-pascal / 2008-12

setting output dir inside fpc's package tree

3 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' trying again, apparently I wasn't able to make my problem clear.

I want to write a Makefile.fpc for fpcmake that does the same thing as any other package inside the $fpc/packages/extra directory tree.

How can I force the output directory of .ppu files to the correct place (being ./units/$cputarget-$ostarget/ if I understand correctly)?

I do not see statements enforcing this behaviour in the other "Makefile.fpc"'s I took as example.

TIA,
Marc

Reply by email

Jonas Maebe
to Marc Santhoff
Marc Santhoff wrote 11 lines
I' trying again, apparently I wasn't able to make my problem clear. I want to write a Makefile.fpc for fpcmake that does the same thing as any other package inside the $fpc/packages/extra directory tree. How can I force the output directory of .ppu files to the correct place (being ./units/$cputarget-$ostarget/ if I understand correctly)? I do not see statements enforcing this behaviour in the other "Makefile.fpc"'s I took as example.

As far as I can tell it's simply the default behaviour of the Makefiles generated by fpcmake:

FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
...
ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
TARGETSUFFIX=$(OS_TARGET)
SOURCESUFFIX=$(OS_SOURCE)
else
TARGETSUFFIX=$(FULL_TARGET)
SOURCESUFFIX=$(FULL_SOURCE)
endif

...

ifndef COMPILER_UNITTARGETDIR
ifdef PACKAGEDIR_MAIN
COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX) else
COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
endif
endif

...

ifdef COMPILER_UNITTARGETDIR
override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
...

Jonas

Reply by email