improved srcmake script