On 2011-02-07 18:21Z, Marco wrote:
[snip makefile]
> I think the linking takes place on the following line:
> 
> $(program_NAME): $(program_OBJS)
>       $(LINK.cc) $(program_OBJS) -o $(program_NAME)
> 
> Correct me if I'm wrong.

You're right.

> Where does the compiling take place?

It happens implicitly. See the "Catalogue of Implicit Rules" in the manual.

> 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

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to