title: How to find proper LDFLAG of a library in a Makefile?
body: <p>How does one know the name of the library when linking it with LDFLAGS in a Makefile?</p>
  
  <p>For example:</p>
  
  <p>libxml2.dylib is linked with -lxml2</p>
  
  <p>libz.dylib which is actually named zlib is linked with -lz</p>
  
  <p>Where are those flags specified? How does one look them up?</p>