title: lib dependencies and their order
body: <p>at times if we don't list libs in certain order inside a makefile, it fails. </p>
  
  <p>The reason being - definition should come before its use. </p>
  
  <p>How to determine the correct order?</p>