[Lazarus] setting defines in makefile
Graeme Geldenhuys
graemeg.lists at gmail.com
Sun Nov 2 10:57:09 CET 2008
On Sun, Nov 2, 2008 at 10:43 AM, Sebastian Kraft <sebastian_kraft at gmx.de> wrote:
> Hello,
>
> just trying to create a makefile for a project...
> How can I pass a define to compiler only for a special target?
I don't know, but why don't you rather try the new 'fpmake' build
system. From what I have seen, it's much easier to use that Makefiles
- once you have a nice example to work from.
Henry Vermaak created a fpmake.pas example for fpGUI. You can find it here...
http://fpgui.svn.sourceforge.net/viewvc/fpgui/trunk/src/fpmake.pas?view=markup
It has sections that have OS specific handling for Windows and Linux.
The fpmake build system was designed to replace Makefile's and have
been available since fpc 2.2.0 I believe.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list