Is there a Linux standard out there that specifies how to name of each directory ?
More or less, read about the File Hierarchy Standard (see also this and the FHS & LSB wikipages). See also hier(7) man page.
But it describes system-wide paths. Notice that libraries often go into /usr/lib/
(or /usr/lib/x86_64-linux-gnu/
...) and header files into /usr/include/
. For software outside of and unknown by your package manager, you'll use /usr/local/lib/
for libraries and /usr/local/include/
for headers. Be also aware of pkg-config.
BTW, you should consider making these directories configurable (at least at build time).
Read also about autoconf and the --prefix
argument (default is /usr/local/
) to its configure
scripts.
Also, consider packaging your software (e.g. as .deb
packages on Ubuntu or Debian). This also means to describe dependencies.
See also GNU stow.
If your software package is some free software (I hope it is, then publish its source code, perhaps on github) you might get help from distribution packagers. And you should look into how similar free software are dealing with that.