[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting macros/variables dynamically
From: |
Paul Smith |
Subject: |
Re: setting macros/variables dynamically |
Date: |
Thu, 01 Nov 2007 20:48:38 -0400 |
On Wed, 2007-10-31 at 22:43 -0400, David Boyce wrote:
> MYSQL_LIBS := $(shell mysql_config --libs)
>
> Notice the := as well as the $(shell).
This will work well. Alternatively, if you want to be portable to
other, non-GNU versions of make, you can use:
MYSQL_LIBS = `mysql_config --libs`
Note that this will not be as efficient as David's solution.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.us
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- Re: setting macros/variables dynamically,
Paul Smith <=
- selinux, Ron Croonenberg, 2007/11/10