[Neil Brown <[EMAIL PROTECTED]>]
> O_OBJS := $(shell echo $(obj-y) | tr ' ' '\n' | cat -n | sort -u +1 | sort -n | cut
>-f2)
Clever. I like pipelines too. Here is a one-fork equivalent, untested:
nodups = $(shell g=' '; for f in $(1); do case $$g in (*" $$f "*) ;; (*) g="$$g$$f
"; echo $$
On Thursday November 30, [EMAIL PROTECTED] wrote:
> Neil Brown writes:
> > + An example for libraries from drivers/acorn/scsi/Makefile:
>
> This is no longer true; you'll have to find another example.
>
> > + As ordering is not so important in libraries, this still uses
> > + LX_OBJS and M
On Thu, Nov 30, 2000 at 12:36:28AM +, Russell King wrote:
> and CONFIG_FOO=y and CONFIG_BAR=m? What about CONFIG_FOO=y and
> CONFIG_BAR=y? Do we still support this method? If not, what is the
> recommended way of doing this sort of stuff?
To do this you need to extend the scheme a little b
Neil Brown writes:
> + An example for libraries from drivers/acorn/scsi/Makefile:
This is no longer true; you'll have to find another example.
> + As ordering is not so important in libraries, this still uses
> + LX_OBJS and MX_OBJS, though (presumably) it could be changed to
> +
Linus,
I thought I would document what I had learnt about Makefiles in
making the initialisation of drivers/md work better.
This patch (minus a few typos that I have since found and corrected)
was blessed by Michael Chastain on linux-kbuild.
Ofcourse, running "make vmlinux" doesn't convert
5 matches
Mail list logo