Can't answer that one for you (perhaps just try?). But I would suggest you try using prerules to set a variable. The LCLPLATFORM is such a variable in the lazarus makefiles;

[prerules]
#
# LCL Platform
ifndef LCL_PLATFORM
ifneq ($(findstring $(OS_TARGET),win32 win64),)
LCL_PLATFORM=win32
else
LCL_PLATFORM=gtk
override COMPILER_UNITDIR+=../lcl/nonwin32
endif
endif
export LCL_PLATFORM


The just use it like $(LCL_PLATFORM).

Ofcourse you need to adjust it for your use.

HTH

Darius


----- Original Message ----- From: "Graeme Geldenhuys" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org>
Sent: Tuesday, August 29, 2006 3:53 PM
Subject: [fpc-pascal] fpcmake question


Is the following allowed in a Makefile.fpc

[target]
units=unit1 unit2 unit3
dirs_linux=x11
dirs_freebsd=x11
dirs_win32=win32

I have read the docs and know the "dirs" is a valid setting in the
"target" section.   But I have seen somewhere an example where they
included the platform as well in the dirs line, but I can seem to find
any such option mentioned in the fpcmake docs.

Is the above valid?

On Linux and FreeBSD, make will also be run in the "x11" directory.
On Win32, make will be run in the "win32" directory instead.

Regards,
 - Graeme -
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to