refactored makefile flags variable