<br><br><div class="gmail_quote">On Sun, Jul 10, 2011 at 11:03 AM, Prashant Shah <span dir="ltr"><<a href="mailto:pshah.mumbai@gmail.com">pshah.mumbai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
On Sun, Jul 10, 2011 at 10:07 AM, Ponkumaran Annadurai<br>
<<a href="mailto:aspkumaran@gmail.com">aspkumaran@gmail.com</a>> wrote:<br>
> I am trying to compile a sample hello world module, but when issue make<br>
> command, it says that "make: Nothing to be done for `all'.". <br>
<br>
</div><br>
<br>
------------------- Makefile --------------------------<br>
obj-m += testmod.o<br>
<br>
KERNELDIR ?= /lib/modules/$(shell uname -r)/build<br>
PWD := $(shell pwd)<br>
<br>
default:<br>
$(MAKE) -C $(KERNELDIR) M=$(PWD)<br>
<br>
clean:<br>
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions<br>
<br>
depend .depend dep:<br>
$(CC) $(CFLAGS) -M *.c > .depend<br>
<br>
ifeq (.depend,$(wildcard .depend))<br>
include .depend<br>
endif<br>
<br>
------------------------------------------------------------------<br>
</blockquote></div><br>when I tried your script it prompted that there might be tab instead of eight spaces. So I inserted 8 spaces there, but it still prompted the same. Also I couldn't understand the script (particularly $(MAKE) - what does the variable stands for? also the rest of the code after "depend.depend.dep"). If you can explain the script, I shall know how to edit the script for my file.<br clear="all">
<br>-- <br>kumaran<br>