Re: Makefile, conditional variable assignment for CFLAGS and LDFLAGS

2014-03-10 Thread Marc Espie
On Mon, Mar 10, 2014 at 11:43:33AM +0100, LEVAI Daniel wrote: > On h, márc 10, 2014 at 11:32:22 +0100, Marc Espie wrote: > > On Mon, Mar 10, 2014 at 10:37:27AM +0100, LEVAI Daniel wrote: > > > Hi! > > > > > > I have this Makefile in a source that has the usual `?=' conditional > > > assignments, b

Re: Makefile, conditional variable assignment for CFLAGS and LDFLAGS

2014-03-10 Thread LEVAI Daniel
On h, márc 10, 2014 at 11:32:22 +0100, Marc Espie wrote: > On Mon, Mar 10, 2014 at 10:37:27AM +0100, LEVAI Daniel wrote: > > Hi! > > > > I have this Makefile in a source that has the usual `?=' conditional > > assignments, but for the CFLAGS and LDFLAGS variables too. I see that > > make(1) reads

Re: Makefile, conditional variable assignment for CFLAGS and LDFLAGS

2014-03-10 Thread Marc Espie
On Mon, Mar 10, 2014 at 10:37:27AM +0100, LEVAI Daniel wrote: > Hi! > > I have this Makefile in a source that has the usual `?=' conditional > assignments, but for the CFLAGS and LDFLAGS variables too. I see that > make(1) reads /usr/share/mk/sys.mk first, and that defines those two, so > this won

Makefile, conditional variable assignment for CFLAGS and LDFLAGS

2014-03-10 Thread LEVAI Daniel
Hi! I have this Makefile in a source that has the usual `?=' conditional assignments, but for the CFLAGS and LDFLAGS variables too. I see that make(1) reads /usr/share/mk/sys.mk first, and that defines those two, so this won't fly with base make(1) because it leaves them out of the game. Are ther