%% "Peschko, Edward" <[EMAIL PROTECTED]> writes: pe> How do you 'reach in and grab' a makefile variable, and then add pe> to it?
You can't, not that way. Command line settings, even if done with +=, take complete precedence over makefile settings. You _can_ do this in your makefile: override CFLAGS += -O then no matter what you add on the command line: make CFLAGS=-g you'll still get the values in the makefile. But if you use override there's no way to override it from the command line. Typically people reserve variables like CFLAGS, etc. for users to use and don't set them inside their makefiles, but instead use other variables for those, then include both in the compile line. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
