# HG changeset patch # User Akos Ladanyi # Date 1265907354 0 # Node ID 974c48bda29e2186d9ad5a6499fb4fc91535b1c0 # Parent a7e93de12cbda2267756b130476b8e84572002bf Add more information on Makefile variables (#316) diff -r a7e93de12cbd -r 974c48bda29e INSTALL --- a/INSTALL Tue Feb 09 23:29:51 2010 +0100 +++ b/INSTALL Thu Feb 11 16:55:54 2010 +0000 @@ -173,3 +173,25 @@ --without-coin Disable COIN-OR support. + + +Makefile Variables +================== + +Some Makefile variables are reserved by the GNU Coding Standards for +the use of the "user" - the person building the package. For instance, +CXX and CXXFLAGS are such variables, and have the same meaning as +explained in the previous section. These variables can be set on the +command line when invoking `make' like this: +`make [VARIABLE=VALUE]...' + +WARNINGCXXFLAGS is a non-standard Makefile variable introduced by us +to hold several compiler flags related to warnings. Its default value +can be overridden when invoking `make'. For example to disable all +warning flags use `make WARNINGCXXFLAGS='. + +In order to turn off a single flag from the default set of warning +flags, you can use the CXXFLAGS variable, since this is passed after +WARNINGCXXFLAGS. For example to turn off `-Wold-style-cast' (which is +used by default when g++ is detected) you can use +`make CXXFLAGS="-g -O2 -Wno-old-style-cast"'.