help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic questions about makefile, e.g. what does @- mean


From: Marco
Subject: Re: Basic questions about makefile, e.g. what does @- mean
Date: Tue, 8 Feb 2011 14:03:39 +0100

On 2011-02-08 Greg Chicares <address@hidden> wrote:

> > Where does the compiling take place?
> 
> It happens implicitly. See the "Catalogue of Implicit Rules" in the manual.

make is smarter than I thought :)

> > What does the @- mean? @ means silent output as far as I know but @-?
> 
> A '@' prefix means "don't echo this command".
> A '-' prefix means "don't stop if this command fails".
>
> [...]
>
> > Where can I specify compiling options, such as -Wall or -pedantic?
> 
> Use the CFLAGS and CXXFLAGS variables for C and C++ respectively. You can
> add them to the makefile, e.g.
>   CFLAGS := -Wall -pedantic
> or specify them on the command line when you invoke 'make', e.g.
>   make CFLAGS='-Wall -pedantic' all

Thanks for clarifying things.


Regards
Marco





reply via email to

[Prev in Thread] Current Thread [Next in Thread]