I am looking for a good Makefile template for creating a dynamic loadable library on Linux. The dynamic library is developed in C++. I only want to specify the library name and its source files (.cc) in the Makefile. Furthermore, I want to be able to specify a directory (e.g. ./build) for the build process. After building, the dynamic library should be in another directory (e.g. ./libs) also specified as variable in the Makefile.
Any hints?
Thanks in advance & best regards! Jonas