[PD-dev] general makefile question
IOhannes m zmoelnig
zmoelnig at iem.at
Thu Dec 2 10:16:19 CET 2010
On 2010-12-01 23:56, Albert Graef wrote:
> IOhannes m zmölnig wrote:
>> however, afaict, CFLAGS and LDFLAGS are commonly meant to be settable by
>> the user, so setting those should not break the build system.
>
> Exactly. Therefore a Makefile should *not* set CFLAGS, CXXFLAGS, LDFLAGS
> and the like, or only set them to some reasonable defaults which can be
> freely overridden by the user. Of course this means that build-specific
> options must be passed in the corresponding Makfile rules in addition to
> these variables.
finarlly someone who understands me!
>
> This is only a convention, of course, but it's part of the GNU Coding
> Standards
ha, thank you very much for the pointer.
i think the curcial part is:
"If there are C compiler options that must be used for proper
compilation of certain files, do not include them in CFLAGS. Users
expect to be able to specify CFLAGS freely themselves."
and i think this can also be extrapolated for any of the standard flags
(CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS)
masdr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20101202/31b2bd68/attachment.bin>
More information about the Pd-dev
mailing list