Passing compiler flags via make argument rather than Makefile -
is possible add compiler flags compiler calls (all .cpp files) via make
argument rather makefile? if possible, how?
yes, possible. can pass make
operand of form variable=value
defines make
variable variable
have value
, overriding content of variable
defined in makefile. consult documentation of make
implementation more details. notice may work differently when using :=
assignment in gnu make.
Comments
Post a Comment