Re: [dwm] [dmenu] OPTFLAGS in config.mk + patch

From: Jukka Salmi <j+dwm_AT_2009.salmi.ch>
Date: Wed, 8 Apr 2009 16:48:18 +0200

Daniel Bainton --> dwm (2009-04-08 17:05:28 +0300):
> 2009/4/8 Jan Blazek <appolito2_AT_gmail.com>:
[...]
> >  # flags
> >  CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
> > -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
> > +OPTFLAGS = -Os
>
> This wont make any difference, you can't pass it from the command line
> like this anyway.
> You're overwriting OPTFLAGS here all the time to -Os.

No, command arguments override ordinary assignements in makefiles:

$ cat Makefile
A=a
t:
        @echo $A
$ make
a
$ make A=b
b

This is required by SUS (IIRC); at least BSD and GNU make(1) work like
this.

Regards, Jukka

-- 
This email fills a much-needed gap in the archives.
Received on Wed Apr 08 2009 - 14:48:18 UTC

This archive was generated by hypermail 2.2.0 : Wed Apr 08 2009 - 15:00:05 UTC