Split make file to ease building from platformshCLI while keeping backward compatibility