standalone: convert to kbuild style