Do a json file or script that would allow you to change easely the variable names of each Makefile to do it more modulable to each Makefile and don't need to change the main Makefile by the created one.
The variables that are SRC, TESTS and LIB can be changed as well as the path variable for each variables.