Sign in Join

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

Mailing lists / fpc-pascal / 2009-12

fpcmake targets and $defines

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Roland Schaefer

Hi, do the standard targets set up by fpcmake come with any defines which allow conditional compilation depending on the target (like extra code to be compiled only when doing 'make debug', for example)? If not, can I get fpcmake to insert defines for such symbols into the generated Makefile somehow?

Cheers, thanks a lot!
Roland

Tomas Hajny
to Roland Schaefer
Roland Schaefer wrote 5 lines
Hi, do the standard targets set up by fpcmake come with any defines which allow conditional compilation depending on the target (like extra code to be compiled only when doing 'make debug', for example)? If not, can I get fpcmake to insert defines for such symbols into the generated Makefile somehow?

I believe that this is not possible at the moment (well, unless you start with modifying fpcmake.ini). However, you can define your own Makefile targets in Makefile.fpc (see Makefile.fpc for the compiler), extend OPT with defines you need there and refer to the predefined platforms afterwards.

Tomas