title: Device Driver Compilation
body: <p>I am having some problems regarding compiling device drivers for linux
  when i compile i am getting the following error</p>
  
  <p>No rule to make target <code>/root/aarif/mydev.c', needed by</code>/root/aarif/mydev.o'.  Stop</p>
  
  <p>the Makefile used is</p>
  
  <pre><code>obj-m=mydev.o
  
  all:
          make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
  
  clean:
          make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
  
  test:test.c
          cc -o test test.c
  </code></pre>
  
  <p>thanks</p>