From: Adriaan de Groot <adridg@cs...> - 2003-07-28 17:10:26
The dependency generation for both C and C++ uses $(CFLAGS), while compilation
uses $(CFLAGS) and $(CXXFLAGS). respectively.
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot@...>
Key fingerprint = 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE
Adriaan de Groot wrote:
> The dependency generation for both C and C++ uses $(CFLAGS), while
> compilation uses $(CFLAGS) and $(CXXFLAGS). respectively.
Good point. The simplest solution would be to split the depend action
into a C and a C++ one. But to avoid duplication it's better to check
the filetype inside the build commands of the action.
I'll fix it. It also requires a fix in the source code, because the
build commands of the depend action didn't get the filetype passed to
I also noticed that the link command used $CFLAGS with $CXX, same
problem. However, should $CXXFLAGS be used at all when linking?
At some point in the project somebody will start whining about the need to
determine the project "requirements". This involves interviewing people who
don't know what they want but, curiously, know exactly when they need it.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///