[Lemon-commits] Akos Ladanyi: Add more information on Makefile v...

Lemon HG hg at lemon.cs.elte.hu
Thu Feb 11 19:55:09 CET 2010


details:   http://lemon.cs.elte.hu/hg/lemon/rev/974c48bda29e
changeset: 890:974c48bda29e
user:      Akos Ladanyi <ladanyi [at] tmit.bme.hu>
date:      Thu Feb 11 16:55:54 2010 +0000
description:
	Add more information on Makefile variables (#316)

diffstat:

 INSTALL |  22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diffs (29 lines):

diff --git a/INSTALL b/INSTALL
--- a/INSTALL
+++ b/INSTALL
@@ -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"'.



More information about the Lemon-commits mailing list