Revert "Removed CONFIG_* definitions in makefiles."

This reverts commit e89a740b972505ea196dbbdc696d648dcb15dfc9.