title: Subfolders in /usr/local/lib?
body: <p>I'm developing a simple C shared library for my university using Cmake.
  At the moment I'm developing the install procedure of my *.so and my .*h files.</p>
  
  <p>Where should I put the so and the header files when the user runs the famous <code>sudo make install</code>?
  From what I understand:</p>
  
  <ol>
  <li>I shouldn't put them in <code>/usr/lib</code> and <code>/usr/include</code> since those folders are reserved for distribution packages; </li>
  <li>I shouldn't put them in <code>/lib</code> and <code>/include</code> since those folders are reserved for OS boot packages;</li>
  </ol>
  
  <p>That leaves me with <code>usr/local/lib</code> and <code>/usr/local/include</code>. However I can't decide whether or not I should put my files in a subfolder:</p>
  
  <ol>
  <li>Putting the files directly inside <code>usr/local/lib</code> and <code>/usr/local/include</code> will make them directly available in the system but they will remain unorganized with all the other files in the folders. More disturbing fact is that if someone installs another shared library whose header has the same name of mine, unknown behaviours may happen;</li>
  <li>Putting the files in a subfolder (<code>/usr/local/lib/myAwesomeProject/</code> and <code>/usr/local/include/myAwesomeProject</code>) will avoid the behaviours above, but will prevent the system to automatically detect my libraries (from what I understand the system automatically looks for include and library only in specific directories <strong>non-recursively</strong>): so if the system looks into <code>/usr/local/include</code>, my includes won't be found because of the subfolder!</li>
  </ol>
  
  <p>To help you, here's my system:</p>
  
  <ul>
  <li>OS system: Ubuntu 16.4 (64 bit virtualized on Windows 10 64-bit);</li>
  <li>CPU (not that I think is useful): Intel® Core™ i5-3230M CPU @ 2.60GHz × 2;</li>
  </ul>
  
  <p>Thanks for any kind reply! </p>