title: Linking kernel module with a static lib
body: <p>I'm trying to link my kernel module with an external static lib, like this:</p>
  
  <pre><code>obj-m += my_prog.o
  my_prog-objs := some/path/lib.a
  # all the standard targets...
  </code></pre>
  
  <p>For some reasone, the above Makefile doesn't compile my_prog.c at all, and the resulting module doesn't contain its code. Certainly, if I remove <code>my_prog-objs</code> line, <code>my_prog.c</code> gets compiled.</p>
  
  <p>What's wrong with such an approach in a Makefile?</p>