[Peter Samuelson] > > make -C /lib/modules/`uname -r`/build modules SUBDIRS=$(pwd) [Miquel van Smoorenburg] > Excellent. Is there any way to put his in a Makefile? I don't know why not. Here's what I would start with: PWD := $(shell pwd) KERNEL := /lib/modules/$(shell uname -r)/build CALLMAKE = $(MAKE) -C $(KERNEL) SUBDIRS=$(PWD) all: # ...other stuff... $(CALLMAKE) modules install: # ...other stuff... $(CALLMAKE) modules_install # ...other stuff... include $(TOPDIR)/Rules.make Not *quite* that simple, but it's a start. Note that with this construction you let the savvy user override $(KERNEL) at the command line. (I, for one, would insist.) Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Linus's include file ... Joe deBlaquiere
- Re: Linus's include file ... Peter Samuelson
- RE: Linus's include file strategy redux LA Walsh
- Re: Linus's include file strategy redu... Miquel van Smoorenburg
- Re: Linus's include file strategy ... ferret
- Re: Linus's include file stra... Miquel van Smoorenburg
- Re: Linus's include file ... ferret
- Re: Linus's include file ... J . A . Magallon
- Re: Linus's include file strategy ... Peter Samuelson
- Re: Linus's include file stra... Miquel van Smoorenburg
- Re: Linus's include file ... Peter Samuelson
- Re: Linus's include file strategy redu... Werner Almesberger
- RE: Linus's include file strategy ... LA Walsh
- Re: Linus's include file strategy ... J . A . Magallon
- Re: Linus's include file stra... Werner Almesberger
- Re: Linus's include file stra... ferret
- Re: Linus's include file strategy redu... richard offer
- Re: Linus's include file strategy redux Matt D. Robinson
- Re: Linus's include file strategy redu... Werner Almesberger
- Re: Linus's include file strategy redux Petr Vandrovec