Home » Community » Coffee corner » The power of Makefile
Re: The power of Makefile [message #25253 is a reply to message #25252] |
Mon, 15 February 2010 16:50 |
|
masu wrote on Mon, 15 February 2010 16:24 | Hi Honza,
first, thanks for your appreciation .
A problem I have is to find a way to define variables when calling make which can be extended then during the make flow.
I thought VAR+=x should work, but it does not work for env variables defined as parameter to make, like this:
make DEFS=-DflagNOGTK
In this case the variable DEFS is completely overwritten by -DflagNOGTK. But what I want is to add this flag to already defined flags inside the Makefile.
Do you have an idea?
Matthias
|
Hi,
This is usually solved using another variable: FIXEDFLAGS=...
FLAGS=$(FIXEDFLAGS) $(DEFS) .
Simple, stupid, but works
Honza
|
|
|
|
|
The power of Makefile
|
|
|
Re: The power of Makefile
By: mirek on Fri, 05 February 2010 16:04
|
|
|
Re: The power of Makefile
By: masu on Fri, 05 February 2010 16:32
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Sat, 06 February 2010 22:46
|
|
|
Re: The power of Makefile
By: masu on Sat, 06 February 2010 22:55
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: mr_ped on Sun, 07 February 2010 01:42
|
|
|
Re: The power of Makefile
By: masu on Sun, 14 February 2010 21:08
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Mon, 15 February 2010 16:24
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Tue, 16 February 2010 23:24
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: chickenk on Mon, 15 March 2010 11:38
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: koldo on Mon, 15 March 2010 12:13
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Mon, 15 March 2010 12:31
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Thu, 18 March 2010 10:57
|
|
|
Re: The power of Makefile
By: Reini on Fri, 19 March 2010 17:53
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Mon, 22 March 2010 11:05
|
|
|
Re: The power of Makefile
By: Reini on Mon, 22 March 2010 20:32
|
|
|
Re: The power of Makefile
By: masu on Tue, 23 March 2010 10:45
|
|
|
Re: The power of Makefile
|
|
|
Universal Makefile
|
|
|
Re: Universal Makefile
By: chickenk on Sat, 28 August 2010 09:22
|
|
|
Re: Universal Makefile
|
|
|
Re: Universal Makefile
By: masu on Mon, 29 November 2010 20:57
|
|
|
Re: Universal Makefile
|
|
|
Re: Universal Makefile
By: masu on Mon, 29 November 2010 23:33
|
Goto Forum:
Current Time: Wed Apr 24 11:19:40 CEST 2024
Total time taken to generate the page: 0.01880 seconds
|