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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -