Separating the shared code and includiung makefiles