This repo contains a quick and dirty example of building dynamic link libraries (coupled at compile time) on different platforms. Instead of a Makefile we use CMake.
breuderink/minimal-cxx-dll
Minimal example of cross-platform (windows, linux, OSX) dynamic link libraries.
C++