refactored the target definition files for linux and mac