add "-g" gcc compile option to makefiles
HOW to add the "-g" gcc compile option to makefiles so that I choose whether to compile for debuggging or not?
e.g. make release make debug However, this requires modifying all the makefiles to add the "debug" target. Currently we build only the "release" target. Is there a easier way (which does not requires modifying all the makefiles)? |
Try this:
Code:
CFLAGS="-g" make release Code:
CFLAGS="-O3 -g" make release |
All times are GMT -5. The time now is 08:41 PM. |