add buildfile for legacy branch