help-make
[Top][All Lists]
Advanced

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

adding to existing makefile variables


From: Peschko, Edward
Subject: adding to existing makefile variables
Date: Mon, 2 Jun 2003 17:51:14 -0700

hey all,

I'm surpised this is not a FAQ, but what I'm trying to do is to add to an 
existing makefile variable, ie:

make CFLAGS+=-g

Unfortunately, this doesn't seem to do what I intend, namely looking in the 
makefile and extracting the CFLAGS variable, and then appending '-g' to it.

Instead, it looks in the *environment* to find a CFLAGS. Which is pretty 
useless because most packages take their CFLAGS variable from a line in a make 
file.

How do you 'reach in and grab' a makefile variable, and then add to it? 

Ed




reply via email to

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